summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-04-10 22:56:40 +0100
committerGitHub <noreply@github.com>2021-04-11 07:56:40 +1000
commit8aa0d5f96ed418e21efb99967f1f6b7fea0dc87f (patch)
tree20292d2d53d3d2cb7fa15c58dc30e0235d7de955 /cli/module_graph.rs
parent3ab94983b4100d5ae3c1d99c8b6a580510cd83f5 (diff)
feat: set useDefineForClassFields to true (#10119)
Fixes: #9773
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 18cb3209c..51e257339 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -803,6 +803,7 @@ impl Graph {
"strict": true,
"target": "esnext",
"tsBuildInfoFile": "deno:///.tsbuildinfo",
+ "useDefineForClassFields": true,
}));
if options.emit {
config.merge(&json!({
@@ -948,6 +949,7 @@ impl Graph {
"module": "esnext",
"strict": true,
"target": "esnext",
+ "useDefineForClassFields": true,
}));
let opts = match options.bundle_type {
BundleType::Esm | BundleType::Iife => json!({