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

feat(vue3): __UNI_PROMISE_API__

上级 c8c1333b
......@@ -93,6 +93,7 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
const deferredCreated = process.env.UNI_PLATFORM === 'mp-toutiao' ||
process.env.UNI_PLATFORM === 'quickapp-webview'
const defines = {
__UNI_PROMISE_API__: JSON.stringify(process.env.UNI_USING_PROMISE_API === 'true'),
__VUE_OPTIONS_API__: JSON.stringify(process.env.UNI_USING_VUE3_OPTIONS_API === 'true'),
__VUE_CREATED_DEFERRED__: JSON.stringify(deferredCreated),
'process.env.UNI_ENV': JSON.stringify(process.env.UNI_PLATFORM),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册