fix: 修复 Admin 浏览器运行缺少 process
This commit is contained in:
1 parent
e09b56e0f3
commit
aa42e7b866
1 file changed
+1
@@ -13,6 +13,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
|
"process.env": "{}",
|
||||||
"process.env.TARO_PLATFORM": JSON.stringify("web"),
|
"process.env.TARO_PLATFORM": JSON.stringify("web"),
|
||||||
"process.env.TARO_ENV": JSON.stringify("h5"),
|
"process.env.TARO_ENV": JSON.stringify("h5"),
|
||||||
PREVIEW_ALL_TEMPLATES: JSON.stringify(true),
|
PREVIEW_ALL_TEMPLATES: JSON.stringify(true),
|
||||||
|
|||||||
Reference in new issue
Block a user