diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-03-07 20:40:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 06:40:11 +1000 |
commit | 33eea0400d6b72d84c8fe80d1fbf9f02723187fb (patch) | |
tree | aaf6a5ac6df3dc53aefb82c090f28e5843c8aeed /cli/module_graph.rs | |
parent | 74584eef04a0a395d903ec9fcb8d91caf305be41 (diff) |
fix(cli/ast): Pass importsNotUsedAsValues to swc (#9714)
Fixes #9709
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r-- | cli/module_graph.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs index 8a3c140ba..ad6d01589 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -773,6 +773,7 @@ impl Graph { let mut ts_config = TsConfig::new(json!({ "checkJs": false, "emitDecoratorMetadata": false, + "importsNotUsedAsValues": "remove", "inlineSourceMap": true, "jsx": "react", "jsxFactory": "React.createElement", @@ -814,6 +815,7 @@ impl Graph { // TODO(@kitsonk) consider enabling this by default // see: https://github.com/denoland/deno/issues/7732 "emitDecoratorMetadata": false, + "importsNotUsedAsValues": "remove", "inlineSourceMap": true, "outDir": "deno://", "removeComments": true, @@ -942,6 +944,7 @@ impl Graph { "emitDecoratorMetadata": false, "esModuleInterop": true, "experimentalDecorators": true, + "importsNotUsedAsValues": "remove", "inlineSourceMap": false, "isolatedModules": true, "jsx": "react", @@ -1589,6 +1592,7 @@ impl Graph { let mut ts_config = TsConfig::new(json!({ "checkJs": false, "emitDecoratorMetadata": false, + "importsNotUsedAsValues": "remove", "inlineSourceMap": true, "jsx": "react", "jsxFactory": "React.createElement", |