mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
feat: using mjs entry for sub packages (#10626)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const { build } = require('esbuild');
|
||||
|
||||
function bundleBundle(format) {
|
||||
const outfile = `dist/index.${format}.js`;
|
||||
const ext = format === 'esm' ? '.mjs' : '.js';
|
||||
const outfile = `dist/index.${format}${ext}`;
|
||||
const finish = () => console.log('Build finished:', outfile);
|
||||
const onRebuild = (error) => (error ? console.log(error) : finish());
|
||||
|
||||
|
Reference in New Issue
Block a user