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:
parent
30479868d0
commit
004e0426f7
2 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -5,5 +5,8 @@
|
|||
"parcel-bundler": "^1.8.1",
|
||||
"protobufjs": "^6.8.6",
|
||||
"typescript": "^2.9.1"
|
||||
}
|
||||
},
|
||||
"browserslist": [
|
||||
"chrome 69"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue