mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(vite): remove conflicting vite aliases (#1624)
This commit is contained in:
parent
f010d0912b
commit
eb67eb919e
@ -36,8 +36,6 @@ async function bundle (nuxt: Nuxt, builder: any) {
|
||||
'#build': nuxt.options.buildDir,
|
||||
'.nuxt': nuxt.options.buildDir,
|
||||
'/.nuxt/entry.mjs': resolve(nuxt.options.buildDir, 'client.js'),
|
||||
'~': nuxt.options.srcDir,
|
||||
'@': nuxt.options.srcDir,
|
||||
'web-streams-polyfill/ponyfill/es2018': resolve(distDir, 'runtime/vite/mock/web-streams-polyfill.mjs'),
|
||||
'whatwg-url': resolve(distDir, 'runtime/vite/mock/whatwg-url.mjs'),
|
||||
// Cannot destructure property 'AbortController' of ..
|
||||
|
@ -41,11 +41,7 @@ export async function bundle (nuxt: Nuxt) {
|
||||
// will be filled in client/server configs
|
||||
'#build/plugins': '',
|
||||
'#build': nuxt.options.buildDir,
|
||||
'/build': nuxt.options.buildDir,
|
||||
'/app': nuxt.options.appDir,
|
||||
'/entry.mjs': resolve(nuxt.options.appDir, 'entry'),
|
||||
'~': nuxt.options.srcDir,
|
||||
'@': nuxt.options.srcDir,
|
||||
'web-streams-polyfill/ponyfill/es2018': 'unenv/runtime/mock/empty',
|
||||
// Cannot destructure property 'AbortController' of ..
|
||||
'abort-controller': 'unenv/runtime/mock/empty'
|
||||
@ -98,7 +94,7 @@ export async function bundle (nuxt: Nuxt) {
|
||||
|
||||
nuxt.hook('vite:serverCreated', (server: vite.ViteDevServer) => {
|
||||
const start = Date.now()
|
||||
warmupViteServer(server, ['/app/entry.mjs']).then(() => {
|
||||
warmupViteServer(server, ['/entry.mjs']).then(() => {
|
||||
consola.info(`Vite warmed up in ${Date.now() - start}ms`)
|
||||
}).catch(consola.error)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user