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
Stop polyfilling console, 'domain', process, and internal stream modules by default; rename includeAliases to additionalAliases, and allow ignoring the defaults with onlyAliases
By default, the modules that were polyfilled in Webpack 4 are mirrored over. However, you can choose to only include certain aliases. For example, you can only have `console` polyfilled.
38
+
You can choose to only include certain aliases, ignoring the defaults. For example, you can have only `console` polyfilled.
39
39
*/
40
-
includeAliases?: readonlyAlias[];
40
+
onlyAliases?: readonlyAlias[];
41
41
};
42
42
43
-
exporttypeExcludeOptions={
43
+
exporttypeAdditionalExcludeAliasesOptions={
44
44
/**
45
-
By default, the modules that were polyfilled in Webpack 4 are mirrored over. However, if you don't want a module like `console` to be polyfilled you can specify alises to be skipped here.
45
+
You can choose to add certain aliases to the list of polyfilled modules. For example, you can choose to polyfill `console`.
46
+
*/
47
+
additionalAliases?: readonlyAlias[];
48
+
49
+
/**
50
+
If you don't want a module to be polyfilled, you can specify aliases to be skipped here.
`console`, `process`, and most deprecated/internal Node.js core modules are not polyfilled by default. If you still need to polyfill them, you can use the `additionalAliases` option:
`excludeAliases` and `includeAliases` are mutually exclusive.
51
+
`onlyAliases` is mutually exclusive with `excludeAliases` and `additionalAliases`.
37
52
38
53
#### excludeAliases
39
54
40
-
By default, the modules that were polyfilled in Webpack 4 are mirrored over. However, if you don't want a module like `console` to be polyfilled you can specify alises to be skipped here.
55
+
If you don't want a module to be polyfilled, you can specify aliases to be skipped here.
0 commit comments