diff --git a/_develop/webpack.config.js b/_develop/webpack.config.js index 5c7101f57b..82587733e4 100644 --- a/_develop/webpack.config.js +++ b/_develop/webpack.config.js @@ -44,6 +44,7 @@ module.exports = function(env) { output: { filename: '[name]', library: 'Quill', + libraryExport: 'default', libraryTarget: 'umd', path: path.resolve(__dirname, '../dist/') }, diff --git a/core.js b/core.js index f3c287e91a..a01db5b47f 100644 --- a/core.js +++ b/core.js @@ -33,4 +33,4 @@ Quill.register({ Parchment.register(Block, Break, Cursor, Inline, Scroll, TextBlot); -module.exports = Quill; +export default Quill; diff --git a/quill.js b/quill.js index 89c2bbeec8..71f82dde3f 100644 --- a/quill.js +++ b/quill.js @@ -101,4 +101,4 @@ Quill.register({ }, true); -module.exports = Quill; +export default Quill;