Skip to content

Commit

Permalink
Preserve es modules in babel config (#4013)
Browse files Browse the repository at this point in the history
Co-authored-by: Zihua Li <i@zihua.li>
  • Loading branch information
fnlctrl and luin committed Feb 15, 2024
1 parent cd3203f commit 5fa786c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fix toolbar button state not updated in some cases
- Narrower `BubbleTheme.tooltip` type
- Fix `Selection.getBounds()` when starting range at end of text node
- Improve compatibility with esbuild

# 2.0.0-rc.1

Expand Down
5 changes: 4 additions & 1 deletion packages/quill/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const pkg = require('./package.json');

module.exports = {
presets: ['@babel/preset-env', '@babel/preset-typescript'],
presets: [
['@babel/preset-env', { modules: false }],
'@babel/preset-typescript'
],
plugins: [
['transform-define', { QUILL_VERSION: pkg.version }],
'./scripts/babel-svg-inline-import',
Expand Down

0 comments on commit 5fa786c

Please sign in to comment.