We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a68db0 commit 757cd3fCopy full SHA for 757cd3f
packages/core/src/config.ts
@@ -656,7 +656,8 @@ const composeExternalsConfig = (
656
esm: 'module-import',
657
cjs: 'commonjs',
658
umd: 'umd',
659
- mf: 'var', // same as default value
+ // if use 'var', when users use external package like '@pkg', this will cause syntax error like 'var pkg = @pkg'
660
+ mf: 'global',
661
} as const;
662
663
switch (format) {
0 commit comments