@dcloudio/uni-cli-shared 3.0.0-alpha-3040720220422004 → 3.0.0-alpha-3040820220426002
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/dist/hbx/alias.js +1 -0
- package/dist/vite/plugins/inject.js +1 -13
- package/package.json +4 -4
- package/lib/.DS_Store +0 -0
- package/lib/vue-i18n/.DS_Store +0 -0
package/dist/hbx/alias.js
CHANGED
|
@@ -19,6 +19,7 @@ function initModuleAlias() {
|
|
|
19
19
|
const serverRendererPath = require.resolve('@vue/server-renderer');
|
|
20
20
|
module_alias_1.default.addAliases({
|
|
21
21
|
'@vue/shared': require.resolve('@vue/shared'),
|
|
22
|
+
'@vue/shared/dist/shared.esm-bundler.js': require.resolve('@vue/shared/dist/shared.esm-bundler.js'),
|
|
22
23
|
'@vue/compiler-dom': require.resolve('@vue/compiler-dom'),
|
|
23
24
|
'@vue/compiler-sfc': compilerSfcPath,
|
|
24
25
|
'@vue/server-renderer': serverRendererPath,
|
|
@@ -54,19 +54,7 @@ function uniViteInjectPlugin(name, options) {
|
|
|
54
54
|
return null;
|
|
55
55
|
if (path_1.sep !== '/')
|
|
56
56
|
id = id.split(path_1.sep).join('/');
|
|
57
|
-
|
|
58
|
-
try {
|
|
59
|
-
ast = this.parse(code);
|
|
60
|
-
}
|
|
61
|
-
catch (err) {
|
|
62
|
-
this.warn({
|
|
63
|
-
code: 'PARSE_ERROR',
|
|
64
|
-
message: `plugin-inject: failed to parse ${id}. Consider restricting the plugin to particular files via options.include`,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
if (!ast) {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
57
|
+
const ast = this.parse(code);
|
|
70
58
|
const imports = new Set();
|
|
71
59
|
ast.body.forEach((node) => {
|
|
72
60
|
if (node.type === 'ImportDeclaration') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-3040820220426002",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@babel/core": "^7.17.9",
|
|
22
22
|
"@babel/parser": "^7.17.9",
|
|
23
23
|
"@babel/types": "^7.17.0",
|
|
24
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
25
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
24
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3040820220426002",
|
|
25
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3040820220426002",
|
|
26
26
|
"@intlify/core-base": "9.1.9",
|
|
27
27
|
"@intlify/shared": "9.1.9",
|
|
28
28
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@vue/compiler-sfc": "3.2.33",
|
|
33
33
|
"@vue/server-renderer": "3.2.33",
|
|
34
34
|
"@vue/shared": "3.2.33",
|
|
35
|
-
"autoprefixer": "^10.4.
|
|
35
|
+
"autoprefixer": "^10.4.5",
|
|
36
36
|
"base64url": "^3.0.1",
|
|
37
37
|
"chokidar": "^3.5.3",
|
|
38
38
|
"compare-versions": "^3.6.0",
|
package/lib/.DS_Store
DELETED
|
Binary file
|
package/lib/vue-i18n/.DS_Store
DELETED
|
Binary file
|