@dcloudio/vue-cli-plugin-uni 2.0.1-alpha-34920220531001 → 2.0.1-alpha-34920220614002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,5 +150,15 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
150
150
  if (process.env.BUILD_ENV === 'ali-ide') {
151
151
  webpackConfig.plugins.delete('progress')
152
152
  }
153
+ webpackConfig.resolve.alias
154
+ .delete('@')
155
+ .set(
156
+ '@/pages.json',
157
+ path.resolve(process.env.UNI_INPUT_DIR, 'pages.json') +
158
+ '?' + JSON.stringify({
159
+ type: 'origin-pages-json'
160
+ })
161
+ )
162
+ .set('@', path.resolve(process.env.UNI_INPUT_DIR))
153
163
  }
154
164
  }
package/lib/mp/index.js CHANGED
@@ -189,7 +189,9 @@ module.exports = {
189
189
  ? process.env.UNI_MP_PLUGIN_MAIN
190
190
  : JSON.parse(process.env.UNI_MP_PLUGIN_EXPORT)
191
191
  ).forEach(fileName => addToUniEntry(fileName))
192
- beforeCode += `${globalEnv}.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;`
192
+ beforeCode += `
193
+ // @ts-ignore
194
+ ${globalEnv}.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;`
193
195
  }
194
196
 
195
197
  const alias = { // 仅 mp-weixin
@@ -218,8 +220,7 @@ module.exports = {
218
220
  output.pathinfo = false
219
221
  }
220
222
  return {
221
- mode: process.env.NODE_ENV === 'production' ? 'production'
222
- : 'development',
223
+ mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
223
224
  entry () {
224
225
  return process.UNI_ENTRY
225
226
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/vue-cli-plugin-uni",
3
- "version": "2.0.1-alpha-34920220531001",
3
+ "version": "2.0.1-alpha-34920220614002",
4
4
  "description": "uni-app plugin for vue-cli 3",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "author": "fxy060608",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcloudio/uni-stat": "^2.0.1-alpha-34920220531001",
20
+ "@dcloudio/uni-stat": "^2.0.1-alpha-34920220614002",
21
21
  "buffer-json": "^2.0.0",
22
22
  "clone-deep": "^4.0.1",
23
23
  "copy-webpack-plugin": "^5.1.1",
@@ -39,5 +39,5 @@
39
39
  "wrap-loader": "^0.2.0",
40
40
  "xregexp": "4.0.0"
41
41
  },
42
- "gitHead": "cafb4dc6533689c8ec0377f6702659aeb4d76ea6"
42
+ "gitHead": "61a67ad68c4f20d4c5e96ca496efbd280efb5ba8"
43
43
  }
@@ -6139,10 +6139,13 @@ function createPatchFunction (backend) {
6139
6139
  }
6140
6140
  }
6141
6141
  // for slot content they should also get the scopeId from the host instance.
6142
+ // ignore uni-app web components
6142
6143
  if (isDef(i = activeInstance) &&
6143
6144
  i !== vnode.context &&
6144
6145
  i !== vnode.fnContext &&
6145
- isDef(i = i.$options._scopeId)
6146
+ isDef(i = i.$options._scopeId) &&
6147
+ // TODO use other flag
6148
+ !activeInstance._vnode.elm.__uniDataset
6146
6149
  ) {
6147
6150
  nodeOps.setStyleScope(vnode.elm, i);
6148
6151
  }