Skip to content

Commit 6423169

Browse files
committed
Add element polyfills to plugin exclusions
1 parent 63524f9 commit 6423169

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build-scripts/bundle.cjs

+5-2
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,17 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild, isTestBuild }) => ({
147147
overrides: [
148148
{
149149
// Add plugin to inject various polyfills, excluding the polyfills
150-
// themselves to prevent self- injection.
150+
// themselves to prevent self-injection.
151151
plugins: [
152152
[
153153
path.join(BABEL_PLUGINS, "custom-polyfill-plugin.js"),
154154
{ method: "usage-global" },
155155
],
156156
],
157-
exclude: /\/node_modules\/(?:unfetch|proxy-polyfill)\//,
157+
exclude: [
158+
path.join(paths.polymer_dir, "src/resources/polyfills"),
159+
/\/node_modules\/(?:unfetch|proxy-polyfill)\//,
160+
],
158161
},
159162
{
160163
// Use unambiguous for dependencies so that require() is correctly injected into CommonJS files

0 commit comments

Comments
 (0)