chore: update tools

pull/5820/head
tangjinzhou 2 years ago
parent 58e8fd3e2e
commit dae579a88e

@ -215,7 +215,7 @@ All rights reserved.
}; };
if (process.env.RUN_ENV === 'PRODUCTION') { if (process.env.RUN_ENV === 'PRODUCTION') {
const entry = ['./index']; let entry = ['./index'];
config.externals = { config.externals = {
vue: { vue: {
root: 'Vue', root: 'Vue',
@ -237,6 +237,7 @@ All rights reserved.
], ],
}; };
if (esm) { if (esm) {
entry = ['./index.esm'];
config.experiments = { config.experiments = {
...config.experiments, ...config.experiments,
outputModule: true, outputModule: true,

@ -0,0 +1 @@
export * from './components';

@ -1,3 +1,3 @@
import './index-style-only'; require('./index-style-only');
export * from './components'; module.exports = require('./components');

Loading…
Cancel
Save