VTable/packages/vtable-search/bundler.config.js
2024-02-07 20:41:26 +08:00

21 lines
449 B
JavaScript

/**
* @type {Partial<import('@internal/bundler').Config>}
*/
const resolve = require('rollup-plugin-node-resolve');
module.exports = {
formats: ['cjs', 'es', 'umd'],
noEmitOnError: false,
copy: ['css'],
name: 'VTable.export',
umdOutputFilename: 'vtable-export',
rollupOptions: {
treeshake: true,
plugins: [resolve({ browser: true })]
},
globals: {
'@visactor/vtable': 'VTable'
},
external: ['@visactor/vtable']
};