VTable/packages/vtable-search/bundler.config.js

21 lines
449 B
JavaScript
Raw Normal View History

2024-02-07 12:41:26 +00:00
/**
* @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']
};