fix(webpack): transpile ufo (#8846)

This commit is contained in:
Kenny 2021-02-18 02:50:17 +09:00 committed by GitHub
parent d58c4f7299
commit ba44b0f9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ export default class WebpackBaseConfig {
return [ return [
/\.vue\.js/i, // include SFCs in node_modules /\.vue\.js/i, // include SFCs in node_modules
/consola\/src/, /consola\/src/,
/@nuxt[/\\]ufo/, // exports modern syntax for browser field /ufo/, // exports modern syntax for browser field
...this.normalizeTranspile({ pathNormalize: true }) ...this.normalizeTranspile({ pathNormalize: true })
] ]
} }