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

wip(app): nvue

上级 75b7a9b9
......@@ -24,7 +24,6 @@
"inlineDynamicImports": true
},
"replacements": {
"__NVUE__": "false",
"__PLATFORM__": "'app'",
"__APP_VIEW__": "false",
"__VUE_OPTIONS_API__": "true",
......
......@@ -57,7 +57,6 @@ export default defineConfig({
define: {
global: 'window',
__DEV__: false,
__NVUE__: false,
__TEST__: false,
__PLATFORM__: JSON.stringify('app'),
__NODE_JS__: false,
......
......@@ -4,7 +4,6 @@
"src/nvue/index.ts": ["dist/nvue.js"]
},
"replacements": {
"__NVUE__": "true",
"__PLATFORM__": "'app'",
"__APP_VIEW__": "false",
"__VUE_OPTIONS_API__": "true",
......
......@@ -11,7 +11,6 @@ export default defineConfig({
root: __dirname,
define: {
global: 'window',
__NVUE__: true,
},
resolve: {
alias: [
......
......@@ -14,7 +14,7 @@ export function applyOptions(
instance: ComponentInternalInstance,
publicThis: ComponentPublicInstance
) {
if (__PLATFORM__ === 'app' && !__NVUE__) {
if (__PLATFORM__ === 'app') {
initWxs(options, instance)
initRenderjs(options, instance)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册