提交 d089c7d6 编写于 作者: fxy060608's avatar fxy060608

fix: Compatible with vite@3

上级 83a19f76
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -67,6 +67,7 @@ export default defineConfig({
__UNI_FEATURE_I18N_ZH_HANS__: true,
__UNI_FEATURE_I18N_ZH_HANT__: true,
__IMPORT_META_ENV_BASE_URL__: JSON.stringify(''),
'process.env.NODE_ENV': JSON.stringify('production'),
},
resolve: {
alias: [
......
......@@ -111,7 +111,7 @@ function parseRollupInput(inputDir: string, platform: UniApp.PLATFORM) {
}
function isVueJs(id: string) {
return id.includes('plugin-vue:export-helper')
return id.includes('\0plugin-vue:export-helper')
}
const chunkFileNameBlackList = ['main', 'pages.json', 'manifest.json']
......
......@@ -46,7 +46,7 @@ export function uniMainJsPlugin(
})
return {
code:
`import 'plugin-vue:export-helper';import 'uni-mp-runtime';import './${PAGES_JSON_JS}';` +
`import '\0plugin-vue:export-helper';import 'uni-mp-runtime';import './${PAGES_JSON_JS}';` +
code,
map,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册