You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-legacy/README.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,14 @@ export default {
49
49
50
50
Set to `false` to avoid generating polyfills and handle it yourself (will still generate legacy chunks with syntax transformations).
51
51
52
+
### `additionalLegacyPolyfills`
53
+
54
+
-**Type:**`string[]`
55
+
56
+
Add custom imports to the legacy polyfills chunk. Since the usage-based polyfill detection only covers ES language features, it may be necessary to manually specify additional DOM API polyfills using this option.
57
+
58
+
Note: if additional plyfills are needed for both the modern and legacy chunks, they can simply be imported in the application source code.
0 commit comments