Skip to content

Commit 60fcf57

Browse files
authored
fix: source-map bundling on message-compiler esm bundler (#666)
1 parent 1b1e95c commit 60fcf57

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

rollup.config.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ function createConfig(format, output, plugins = []) {
136136

137137
const external =
138138
isGlobalBuild || isBrowserESMBuild
139-
? packageOptions.enableFullBundleForEsmBrowser && isBrowserESMBuild
140-
? []
141-
: ['vue'] // packageOptions.enableNonBrowserBranches
142-
: // Node / esm-bundler builds. Externalize everything.
139+
? ['vue'] // packageOptions.enableNonBrowserBranches
140+
: // ? packageOptions.enableFullBundleForEsmBrowser && isBrowserESMBuild
141+
// ? []
142+
// : ['vue'] // packageOptions.enableNonBrowserBranches
143+
// Node / esm-bundler builds. Externalize everything.
143144
[
144145
...Object.keys(pkg.dependencies || {}),
145146
...Object.keys(pkg.peerDependencies || {})
@@ -175,8 +176,8 @@ function createConfig(format, output, plugins = []) {
175176
isBundlerESMBuild,
176177
isBrowserESMBuild,
177178
// isBrowserBuild?
178-
(isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) &&
179-
!packageOptions.enableFullBundleForEsmBrowser,
179+
isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild,
180+
// (isGlobalBuild || isBrowserESMBuild || isBundlerESMBuild) && !packageOptions.enableFullBundleForEsmBrowser,
180181
isGlobalBuild,
181182
isNodeBuild,
182183
isRuntimeOnlyBuild,

0 commit comments

Comments
 (0)