From aed4265ed9967d68bf169611d7d07a026d4ff515 Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Fri, 3 May 2024 20:58:54 +0000 Subject: [PATCH] Add element polyfills to plugin exclusions --- build-scripts/bundle.cjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-scripts/bundle.cjs b/build-scripts/bundle.cjs index e0503a7a7313..deb7cada51ac 100644 --- a/build-scripts/bundle.cjs +++ b/build-scripts/bundle.cjs @@ -154,7 +154,10 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({ { method: "usage-global" }, ], ], - exclude: /\/node_modules\/(?:unfetch|proxy-polyfill)\//, + exclude: [ + /\/src\/resources\/polyfills\//, + /\/node_modules\/(?:unfetch|proxy-polyfill)\//, + ], }, { // Use unambiguous for dependencies so that require() is correctly injected into CommonJS files