From: 二当家的 <1098626505@qq.com> Date: Fri, 11 Oct 2019 01:48:52 +0000 (+0800) Subject: chore: typo isBunlderESMBuild in rollup.config.js (#195) X-Git-Tag: v3.0.0-alpha.0~504 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f87d1d4868f53cd0442640722b4687d8731a330;p=thirdparty%2Fvuejs%2Fcore.git chore: typo isBunlderESMBuild in rollup.config.js (#195) --- diff --git a/rollup.config.js b/rollup.config.js index 4e875fdff9..52f7941af0 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -74,7 +74,7 @@ function createConfig(output, plugins = []) { const isProductionBuild = process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file) const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file) - const isBunlderESMBuild = /\.esm\.js$/.test(output.file) + const isBundlerESMBuild = /\.esm\.js$/.test(output.file) const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file) if (isGlobalBuild) { @@ -118,7 +118,7 @@ function createConfig(output, plugins = []) { aliasPlugin, createReplacePlugin( isProductionBuild, - isBunlderESMBuild, + isBundlerESMBuild, (isGlobalBuild || isBrowserESMBuild) && !packageOptions.enableNonBrowserBranches ), @@ -133,10 +133,10 @@ function createConfig(output, plugins = []) { } } -function createReplacePlugin(isProduction, isBunlderESMBuild, isBrowserBuild) { +function createReplacePlugin(isProduction, isBundlerESMBuild, isBrowserBuild) { return replace({ __COMMIT__: `"${process.env.COMMIT}"`, - __DEV__: isBunlderESMBuild + __DEV__: isBundlerESMBuild ? // preserve to be handled by bundlers `process.env.NODE_ENV !== 'production'` : // hard coded dev/prod builds