We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58e8fd3 commit dae579aCopy full SHA for dae579a
antd-tools/getWebpackConfig.js
@@ -215,7 +215,7 @@ All rights reserved.
215
};
216
217
if (process.env.RUN_ENV === 'PRODUCTION') {
218
- const entry = ['./index'];
+ let entry = ['./index'];
219
config.externals = {
220
vue: {
221
root: 'Vue',
@@ -237,6 +237,7 @@ All rights reserved.
237
],
238
239
if (esm) {
240
+ entry = ['./index.esm'];
241
config.experiments = {
242
...config.experiments,
243
outputModule: true,
index.esm.js
@@ -0,0 +1 @@
1
+export * from './components';
index.js
@@ -1,3 +1,3 @@
-import './index-style-only';
+require('./index-style-only');
2
3
-export * from './components';
+module.exports = require('./components');
0 commit comments