From 27bcba87415629ab368efd89cee2195421249445 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 5 Jun 2024 01:30:16 +0200 Subject: [PATCH] fix(rollup): update `importAttributesKey` to `with` context: - https://v8.dev/features/import-attributes - https://github.com/rollup/rollup/pull/5474 --- src/build.ts | 4 ++++ 1 file changed, 4 insertions(+) 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,