VChart/packages/vchart-extension/bundler.config.js
2024-09-05 14:47:50 +08:00

24 lines
479 B
JavaScript

/**
* @type {import('@internal/bundler').Config}
*/
module.exports = {
name: 'VChartExtension',
formats: ['es', 'cjs', 'umd'],
outputDir: {
es: 'esm',
cjs: 'cjs',
umd: 'build'
},
umdOutputFilename: 'index',
noEmitOnError: false,
envs: {
__DEV__: JSON.stringify(process.env.NODE_ENV !== 'production')
},
globals: {
'@visactor/vchart': 'VChart',
'@visactor/vutils': 'VUtils'
},
external: ['@visactor/vchart', '@visactor/vutils']
};