diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-03-14 22:19:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 09:19:27 +1100 |
| commit | c4709834b37640fd3c9d492123e6add904546573 (patch) | |
| tree | 238dc10a985f04709437b6e5d74bc90d98495a51 /cli/module_graph.rs | |
| parent | 7286eea75c991dd12cbe5f124f5037a93de1ce43 (diff) | |
fix(cli/module_graph): Set useDefineForClassFields to true (#9774)
Fixes #9773
Diffstat (limited to 'cli/module_graph.rs')
| -rw-r--r-- | cli/module_graph.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs index ad6d01589..ddfc3ad84 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -809,6 +809,7 @@ impl Graph { "strict": true, "target": "esnext", "tsBuildInfoFile": "deno:///.tsbuildinfo", + "useDefineForClassFields": true, })); if options.emit { config.merge(&json!({ @@ -954,6 +955,7 @@ impl Graph { "module": "esnext", "strict": true, "target": "esnext", + "useDefineForClassFields": true, })); let opts = match options.bundle_type { BundleType::Esm | BundleType::Iife => json!({ |
