Unverified Commit 0af9d849 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Compile dependencies for IE11 (#7646)

This PR compiles development-time dependencies that cause invalid syntax errors in IE 11 (ES 5).

Closes #7610
Closes #7612
parent 8ddb4a6a
...@@ -405,12 +405,14 @@ export default async function getBaseWebpackConfig( ...@@ -405,12 +405,14 @@ export default async function getBaseWebpackConfig(
/next-server[\\/]dist[\\/]lib/, /next-server[\\/]dist[\\/]lib/,
/next[\\/]dist[\\/]client/, /next[\\/]dist[\\/]client/,
/next[\\/]dist[\\/]pages/, /next[\\/]dist[\\/]pages/,
/[\\/](strip-ansi|ansi-regex)[\\/]/,
], ],
exclude: (path: string) => { exclude: (path: string) => {
if ( if (
/next-server[\\/]dist[\\/]lib/.test(path) || /next-server[\\/]dist[\\/]lib/.test(path) ||
/next[\\/]dist[\\/]client/.test(path) || /next[\\/]dist[\\/]client/.test(path) ||
/next[\\/]dist[\\/]pages/.test(path) /next[\\/]dist[\\/]pages/.test(path) ||
/[\\/](strip-ansi|ansi-regex)[\\/]/
) { ) {
return false return false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment