Skip to content

Commit

Permalink
deno2: make parcel produce more modern javascript
Browse files Browse the repository at this point in the history
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 parcel-bundler/parcel#954
  • Loading branch information
piscisaureus committed Jun 15, 2018
1 parent 941bb15 commit 69d23f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions deno2/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion deno2/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"parcel-bundler": "^1.8.1",
"protobufjs": "^6.8.6",
"typescript": "^2.9.1"
}
},
"browserslist": [
"chrome 69"
]
}

0 comments on commit 69d23f6

Please sign in to comment.