@dcloudio/vue-cli-plugin-uni 2.0.2-alpha-3080320230522001 → 2.0.2-alpha-3080520230615001
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/chain-webpack.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = function chainWebpack (platformOptions, vueOptions, api) {
|
|
|
35
35
|
const keys = ['publicPath', 'outputPath']
|
|
36
36
|
keys.forEach(key => {
|
|
37
37
|
generator[key] = pathData => {
|
|
38
|
-
const outputPath = oldOptions
|
|
38
|
+
const outputPath = oldOptions[key](null, pathData.module.request)
|
|
39
39
|
const basename = path.basename(outputPath)
|
|
40
40
|
return outputPath.substring(0, outputPath.length - basename.length)
|
|
41
41
|
}
|
package/lib/configure-webpack.js
CHANGED
|
@@ -258,7 +258,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
258
258
|
} : patterns))
|
|
259
259
|
|
|
260
260
|
const uniExtApis = require('@dcloudio/uni-cli-shared/lib/uni_modules/uni_modules')
|
|
261
|
-
.parseUniExtApis(false)
|
|
261
|
+
.parseUniExtApis(false, process.env.UNI_UTS_PLATFORM, 'javascript')
|
|
262
262
|
const keys = Object.keys(uniExtApis)
|
|
263
263
|
if (keys.length) {
|
|
264
264
|
plugins.push(new webpack.ProvidePlugin(uniExtApis))
|
|
@@ -284,7 +284,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
284
284
|
plugins.push(new CopyWebpackPlugin(CopyWebpackPluginVersion > 5 ? {
|
|
285
285
|
patterns
|
|
286
286
|
} : patterns))
|
|
287
|
-
} catch (e) {
|
|
287
|
+
} catch (e) {}
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
if (process.UNI_SCRIPT_ENV && Object.keys(process.UNI_SCRIPT_ENV).length) {
|
|
@@ -383,7 +383,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
383
383
|
dir: process.env.UNI_INPUT_DIR
|
|
384
384
|
}))
|
|
385
385
|
}
|
|
386
|
-
} catch (e) {
|
|
386
|
+
} catch (e) {}
|
|
387
387
|
|
|
388
388
|
const resolveLoaderAlias = {}
|
|
389
389
|
const modules = ['@vue/cli-plugin-babel', '@vue/cli-service']
|
|
@@ -416,7 +416,8 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
416
416
|
if (process.env.UNI_PLATFORM.startsWith('mp')) {
|
|
417
417
|
const BabelRuntimeVersions = require('@babel/runtime/package.json').version.split('.')
|
|
418
418
|
if (BabelRuntimeVersions[0] === '7' && Number(BabelRuntimeVersions[1]) >= 18) {
|
|
419
|
-
alias['@babel/runtime/regenerator'] = require.resolve(
|
|
419
|
+
alias['@babel/runtime/regenerator'] = require.resolve(
|
|
420
|
+
'@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator')
|
|
420
421
|
}
|
|
421
422
|
}
|
|
422
423
|
|
|
@@ -448,4 +449,4 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
|
|
|
448
449
|
watchOptions: require('./util').getWatchOptions()
|
|
449
450
|
}, platformWebpackConfig)
|
|
450
451
|
}
|
|
451
|
-
}
|
|
452
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-3080520230615001",
|
|
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.2-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.2-alpha-3080520230615001",
|
|
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": "c9d18e44da2ea83e0ca9ed05048bfbad49f0de29"
|
|
45
45
|
}
|