From 004e0426f7e86047de73ee5f3353a14470d05a3f Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 15 Jun 2018 22:20:32 +0200 Subject: [PATCH] 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 --- deno2/BUILD.gn | 1 + deno2/js/package.json | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deno2/BUILD.gn b/deno2/BUILD.gn index e660c08e90..3792702717 100644 --- a/deno2/BUILD.gn +++ b/deno2/BUILD.gn @@ -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", diff --git a/deno2/js/package.json b/deno2/js/package.json index eb6cfd7fdb..29d4d76ffa 100644 --- a/deno2/js/package.json +++ b/deno2/js/package.json @@ -5,5 +5,8 @@ "parcel-bundler": "^1.8.1", "protobufjs": "^6.8.6", "typescript": "^2.9.1" - } + }, + "browserslist": [ + "chrome 69" + ] }