diff --git a/src/build.ts b/src/build.ts index 047ea2fa..74ece0b7 100644 --- a/src/build.ts +++ b/src/build.ts @@ -130,6 +130,10 @@ async function _build( cjsBridge: false, inlineDependencies: false, preserveDynamicImports: true, + output: { + // https://v8.dev/features/import-attributes + importAttributesKey: "with", + }, // Plugins replace: { preventAssignment: true,