update: more bundle stuff
This commit is contained in:
+2
-2
@@ -82,7 +82,7 @@ function createConfig(format, output, plugins = []) {
|
|||||||
output.sourcemap = !!process.env.SOURCE_MAP;
|
output.sourcemap = !!process.env.SOURCE_MAP;
|
||||||
output.banner = banner;
|
output.banner = banner;
|
||||||
output.externalLiveBindings = false;
|
output.externalLiveBindings = false;
|
||||||
output.globals = { 'vue-demi': 'VueDemi' };
|
output.globals = { vue: 'Vue', 'vue-demi': 'VueDemi' };
|
||||||
|
|
||||||
const isProductionBuild = /\.prod\.js$/.test(output.file);
|
const isProductionBuild = /\.prod\.js$/.test(output.file);
|
||||||
const isGlobalBuild = format.startsWith('global');
|
const isGlobalBuild = format.startsWith('global');
|
||||||
@@ -111,7 +111,7 @@ function createConfig(format, output, plugins = []) {
|
|||||||
// during a single build.
|
// during a single build.
|
||||||
hasTSChecked = true;
|
hasTSChecked = true;
|
||||||
|
|
||||||
const external = ['vue-demi', (id) => id.includes('@babel/runtime')];
|
const external = ['vue', 'vue-demi', (id) => id.includes('@babel/runtime')];
|
||||||
|
|
||||||
const nodePlugins = [resolve(), commonjs({ include: 'node_modules/**' })];
|
const nodePlugins = [resolve(), commonjs({ include: 'node_modules/**' })];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user