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 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!({