aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.zig')
-rw-r--r--src/runtime.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime.zig b/src/runtime.zig
index 8a0c4611b..7af9015ed 100644
--- a/src/runtime.zig
+++ b/src/runtime.zig
@@ -326,6 +326,14 @@ pub const Runtime = struct {
dont_bundle_twice: bool = false,
+ /// This is a list of packages which even when require() is used, we will
+ /// instead convert to ESM import statements.
+ ///
+ /// This is not normally a safe transformation.
+ ///
+ /// So we have a list of packages which we know are safe to do this with.
+ unwrap_commonjs_packages: []const string = .{},
+
pub const ReplaceableExport = union(enum) {
delete: void,
replace: JSAst.Expr,