@dcloudio/vue-cli-plugin-hbuilderx 2.0.1-34620220419001 → 2.0.1-34720220422001
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.
|
@@ -316,6 +316,7 @@ module.exports = function () {
|
|
|
316
316
|
extensions: ['.js', '.nvue', '.vue', '.json'],
|
|
317
317
|
alias: {
|
|
318
318
|
'@': process.env.UNI_INPUT_DIR,
|
|
319
|
+
'uni-polyfill': require.resolve('@dcloudio/uni-cli-shared/lib/uni-polyfill.js'),
|
|
319
320
|
'uni-pages': path.resolve(process.env.UNI_INPUT_DIR, 'pages.json'),
|
|
320
321
|
'uni-app-style': path.resolve(process.env.UNI_INPUT_DIR, getNVueMainEntry()) + '?' + JSON.stringify({
|
|
321
322
|
type: 'appStyle'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-hbuilderx",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-34720220422001",
|
|
4
4
|
"description": "HBuilderX plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"css": "~2.2.1",
|
|
19
19
|
"escodegen": "^1.8.1"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "021b138a8234345830ee7fa11c3eec0b98f1c073"
|
|
22
22
|
}
|
|
@@ -59,22 +59,8 @@ module.exports = function (content, map) {
|
|
|
59
59
|
return `
|
|
60
60
|
${statCode}
|
|
61
61
|
import 'uni-app-style'
|
|
62
|
+
import 'uni-polyfill'
|
|
62
63
|
import App from './${normalizePath(params.page)}.nvue?mpType=page'
|
|
63
|
-
if (typeof Promise !== 'undefined' && !Promise.prototype.finally) {
|
|
64
|
-
Promise.prototype.finally = function(callback) {
|
|
65
|
-
var promise = this.constructor
|
|
66
|
-
return this.then(function(value) {
|
|
67
|
-
return promise.resolve(callback()).then(function() {
|
|
68
|
-
return value
|
|
69
|
-
})
|
|
70
|
-
}, function(reason) {
|
|
71
|
-
return promise.resolve(callback()).then(function() {
|
|
72
|
-
throw reason
|
|
73
|
-
})
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
ArrayBuffer = uni.base64ToArrayBuffer('').constructor
|
|
78
64
|
App.mpType = 'page'
|
|
79
65
|
App.route = '${params.page}'
|
|
80
66
|
App.el = '#root'
|