1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

deno2: make parcel produce more modern javascript

Parcel runs typescript compiler output through babel. Unfortunately
there's no way to turn this off entirely, but with this rule it at least
won't transpile down to ES5.

See also https://github.com/parcel-bundler/parcel/issues/954
This commit is contained in:
Bert Belder 2018-06-15 22:20:32 +02:00
parent 30479868d0
commit 004e0426f7
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
2 changed files with 5 additions and 1 deletions

View file

@ -98,6 +98,7 @@ run_node("bundle") {
"js/main.ts",
"js/msg.pb.d.ts",
"js/msg.pb.js",
"js/package.json", # `browserslist` field controls transform.
]
outputs = [
out_dir + "main.js",

View file

@ -5,5 +5,8 @@
"parcel-bundler": "^1.8.1",
"protobufjs": "^6.8.6",
"typescript": "^2.9.1"
}
},
"browserslist": [
"chrome 69"
]
}