fix(template-vite): incorrectly bundling browser entrypoints (#3278)
This commit is contained in:
Родитель
c1f725103c
Коммит
fd1ed4b250
|
@ -5,6 +5,7 @@ export default defineConfig({
|
|||
resolve: {
|
||||
// Some libs that can run in both Web and Node.js, such as `axios`, we need to tell Vite to build them in Node.js.
|
||||
browserField: false,
|
||||
conditions: ['node'],
|
||||
mainFields: ['module', 'jsnext:main', 'jsnext'],
|
||||
},
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче