mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(webpack): fix consola IE compatibility (#6298)
This commit is contained in:
parent
27e03531d6
commit
d1df5c8124
@ -68,6 +68,7 @@ export default class WebpackBaseConfig {
|
||||
get modulesToTranspile () {
|
||||
return [
|
||||
/\.vue\.js/i, // include SFCs in node_modules
|
||||
/consola\/src/,
|
||||
...this.normalizeTranspile({ pathNormalize: true })
|
||||
]
|
||||
}
|
||||
@ -224,7 +225,7 @@ export default class WebpackBaseConfig {
|
||||
alias () {
|
||||
return {
|
||||
...this.buildContext.options.alias,
|
||||
consola: require.resolve(`consola/dist/consola${this.isServer ? '' : '.browser'}.js`),
|
||||
consola: require.resolve(`consola/${this.isServer ? 'dist/consola' : 'src/browser'}.js`),
|
||||
'vue-meta': require.resolve(`vue-meta${this.isServer ? '' : '/dist/vue-meta.esm.browser.js'}`)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user