VChart/packages/vchart-extension/bundler.config.js

24 lines
479 B
JavaScript
Raw Permalink Normal View History

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