From 5fa786c5ff1d8a01fb17fd5cde7e83c5e6c8815f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E9=93=84=E8=BF=90=20=28Alan=20Song=29?= Date: Wed, 14 Feb 2024 23:20:06 -0800 Subject: [PATCH] Preserve es modules in babel config (#4013) Co-authored-by: Zihua Li --- CHANGELOG.md | 1 + packages/quill/babel.config.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71ddc858a9..56bbbe9e4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/quill/babel.config.js b/packages/quill/babel.config.js index 2658740917..847b088784 100644 --- a/packages/quill/babel.config.js +++ b/packages/quill/babel.config.js @@ -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',