Skip to content

Commit a9f99fe

Browse files
committed
use new webapck libraryExport option
1 parent ee94c03 commit a9f99fe

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

_develop/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = function(env) {
4444
output: {
4545
filename: '[name]',
4646
library: 'Quill',
47+
libraryExport: 'default',
4748
libraryTarget: 'umd',
4849
path: path.resolve(__dirname, '../dist/')
4950
},

core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Quill.register({
3333
Parchment.register(Block, Break, Cursor, Inline, Scroll, TextBlot);
3434

3535

36-
module.exports = Quill;
36+
export default Quill;

quill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ Quill.register({
101101
}, true);
102102

103103

104-
module.exports = Quill;
104+
export default Quill;

0 commit comments

Comments
 (0)