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
|
|
|
};
|