Skip to content

Commit dae579a

Browse files
committed
chore: update tools
1 parent 58e8fd3 commit dae579a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

antd-tools/getWebpackConfig.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ All rights reserved.
215215
};
216216

217217
if (process.env.RUN_ENV === 'PRODUCTION') {
218-
const entry = ['./index'];
218+
let entry = ['./index'];
219219
config.externals = {
220220
vue: {
221221
root: 'Vue',
@@ -237,6 +237,7 @@ All rights reserved.
237237
],
238238
};
239239
if (esm) {
240+
entry = ['./index.esm'];
240241
config.experiments = {
241242
...config.experiments,
242243
outputModule: true,

index.esm.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './components';

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './index-style-only';
1+
require('./index-style-only');
22

3-
export * from './components';
3+
module.exports = require('./components');

0 commit comments

Comments
 (0)