@dcloudio/vue-cli-plugin-uni 2.0.1-alpha-36720221018001 → 2.0.1-alpha-36720221018002
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.
- package/lib/configure-webpack.js +10 -5
- package/package.json +3 -3
package/lib/configure-webpack.js
CHANGED
|
@@ -106,7 +106,6 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
106
106
|
const tsLoaderOptions = {
|
|
107
107
|
context,
|
|
108
108
|
configFile: tsConfigJsonFile,
|
|
109
|
-
transpileOnly: false,
|
|
110
109
|
compilerOptions: {
|
|
111
110
|
baseUrl: context,
|
|
112
111
|
typeRoots: [resolveModule('@dcloudio/types'), resolveModule('@types')],
|
|
@@ -135,6 +134,12 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
135
134
|
],
|
|
136
135
|
'mpvue-page-factory': [
|
|
137
136
|
resolveModule('@dcloudio/vue-cli-plugin-uni/packages/mpvue-page-factory')
|
|
137
|
+
],
|
|
138
|
+
'@vue/composition-api': [
|
|
139
|
+
resolveModule('@dcloudio/vue-cli-plugin-uni/packages/@vue/composition-api')
|
|
140
|
+
],
|
|
141
|
+
'@dcloudio/uni-app': [
|
|
142
|
+
resolveModule('@dcloudio/uni-app')
|
|
138
143
|
]
|
|
139
144
|
}
|
|
140
145
|
},
|
|
@@ -155,7 +160,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
155
160
|
function updateTsLoader (rawRules, fakeFile, loader) {
|
|
156
161
|
const matchRule = rawRules.find(createMatcher(fakeFile))
|
|
157
162
|
if (matchRule && matchRule.use) {
|
|
158
|
-
if (
|
|
163
|
+
if (isInHBuilderX) {
|
|
159
164
|
matchRule.use.forEach(matchUse => {
|
|
160
165
|
if (matchUse.loader.includes('ts-loader')) {
|
|
161
166
|
Object.assign(matchUse.options, tsLoaderOptions)
|
|
@@ -276,7 +281,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
276
281
|
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
277
282
|
patterns
|
|
278
283
|
} : patterns))
|
|
279
|
-
} catch (e) {}
|
|
284
|
+
} catch (e) { }
|
|
280
285
|
}
|
|
281
286
|
|
|
282
287
|
if (process.UNI_SCRIPT_ENV && Object.keys(process.UNI_SCRIPT_ENV).length) {
|
|
@@ -375,7 +380,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
375
380
|
dir: process.env.UNI_INPUT_DIR
|
|
376
381
|
}))
|
|
377
382
|
}
|
|
378
|
-
} catch (e) {}
|
|
383
|
+
} catch (e) { }
|
|
379
384
|
|
|
380
385
|
const resolveLoaderAlias = {}
|
|
381
386
|
const modules = ['@vue/cli-plugin-babel', '@vue/cli-service']
|
|
@@ -428,4 +433,4 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
428
433
|
watchOptions: require('./util').getWatchOptions()
|
|
429
434
|
}, platformWebpackConfig)
|
|
430
435
|
}
|
|
431
|
-
}
|
|
436
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.1-alpha-
|
|
3
|
+
"version": "2.0.1-alpha-36720221018002",
|
|
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-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.1-alpha-36720221018002",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"clone-deep": "^4.0.1",
|
|
23
23
|
"cross-env": "^5.2.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"copy-webpack-plugin": ">=5",
|
|
42
42
|
"postcss": ">=7"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "595dafce3471cb9a16766b6b6feaccf752481dc3"
|
|
45
45
|
}
|