summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
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!({