@dcloudio/uni-cli-shared 3.0.0-alpha-3080120230425001 → 3.0.0-alpha-3080120230428001
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/constants.d.ts +0 -2
- package/dist/constants.js +1 -3
- package/dist/esbuild.d.ts +2 -2
- package/dist/json/mp/jsonFile.d.ts +1 -1
- package/dist/messages/en.d.ts +0 -1
- package/dist/messages/en.js +0 -1
- package/dist/messages/index.d.ts +0 -2
- package/dist/messages/zh_CN.d.ts +0 -1
- package/dist/messages/zh_CN.js +0 -1
- package/dist/preprocess/context.d.ts +1 -2
- package/dist/preprocess/context.js +2 -17
- package/dist/preprocess/index.d.ts +0 -4
- package/dist/preprocess/index.js +1 -11
- package/dist/resolve.js +0 -4
- package/dist/utils.d.ts +1 -1
- package/dist/vite/plugins/mainJs.js +1 -3
- package/dist/vite/plugins/vitejs/plugins/css.d.ts +1 -2
- package/dist/vite/plugins/vitejs/plugins/css.js +2 -5
- package/dist/vite/utils/plugin.d.ts +0 -1
- package/dist/vite/utils/plugin.js +1 -9
- package/package.json +8 -8
- package/lib/.DS_Store +0 -0
- package/lib/vue-i18n/.DS_Store +0 -0
package/dist/constants.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ export declare const EXTNAME_JS_RE: RegExp;
|
|
|
8
8
|
export declare const EXTNAME_TS_RE: RegExp;
|
|
9
9
|
export declare const extensions: string[];
|
|
10
10
|
export declare const PAGES_JSON_JS = "pages-json-js";
|
|
11
|
-
export declare const PAGES_JSON_UTS = "pages-json-uts";
|
|
12
11
|
export declare const MANIFEST_JSON_JS = "manifest-json-js";
|
|
13
|
-
export declare const MANIFEST_JSON_UTS = "manifest-json-uts";
|
|
14
12
|
export declare const JSON_JS_MAP: {
|
|
15
13
|
readonly 'pages.json': "pages-json-js";
|
|
16
14
|
readonly 'manifest.json': "manifest-json-js";
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TEXT_STYLE = exports.DEFAULT_ASSETS_RE = exports.KNOWN_ASSET_TYPES = exports.COMMON_EXCLUDE = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_CONFIG_SERVICE = exports.APP_CONFIG = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.JSON_JS_MAP = exports.
|
|
3
|
+
exports.TEXT_STYLE = exports.DEFAULT_ASSETS_RE = exports.KNOWN_ASSET_TYPES = exports.COMMON_EXCLUDE = exports.BASE_COMPONENTS_STYLE_PATH = exports.H5_COMPONENTS_STYLE_PATH = exports.H5_FRAMEWORK_STYLE_PATH = exports.H5_API_STYLE_PATH = exports.PAGE_EXTNAME = exports.PAGE_EXTNAME_APP = exports.BINDING_COMPONENTS = exports.APP_CONFIG_SERVICE = exports.APP_CONFIG = exports.APP_SERVICE_FILENAME = exports.ASSETS_INLINE_LIMIT = exports.JSON_JS_MAP = exports.MANIFEST_JSON_JS = exports.PAGES_JSON_JS = exports.extensions = exports.EXTNAME_TS_RE = exports.EXTNAME_JS_RE = exports.EXTNAME_VUE_RE = exports.EXTNAME_VUE_TEMPLATE = exports.EXTNAME_VUE = exports.EXTNAME_TS = exports.EXTNAME_JS = exports.PUBLIC_DIR = void 0;
|
|
4
4
|
exports.PUBLIC_DIR = 'static';
|
|
5
5
|
exports.EXTNAME_JS = ['.js', '.ts', '.jsx', '.tsx'];
|
|
6
6
|
exports.EXTNAME_TS = ['.ts', '.tsx'];
|
|
@@ -19,9 +19,7 @@ exports.extensions = [
|
|
|
19
19
|
'.json',
|
|
20
20
|
].concat(exports.EXTNAME_VUE);
|
|
21
21
|
exports.PAGES_JSON_JS = 'pages-json-js';
|
|
22
|
-
exports.PAGES_JSON_UTS = 'pages-json-uts';
|
|
23
22
|
exports.MANIFEST_JSON_JS = 'manifest-json-js';
|
|
24
|
-
exports.MANIFEST_JSON_UTS = 'manifest-json-uts';
|
|
25
23
|
exports.JSON_JS_MAP = {
|
|
26
24
|
'pages.json': exports.PAGES_JSON_JS,
|
|
27
25
|
'manifest.json': exports.MANIFEST_JSON_JS,
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BuildOptions } from 'esbuild';
|
|
2
|
-
export declare function transformWithEsbuild(code: string, filename: string, options: BuildOptions): Promise<import("esbuild").BuildResult
|
|
3
|
-
export declare function esbuild(options: BuildOptions): Promise<import("esbuild").BuildResult
|
|
2
|
+
export declare function transformWithEsbuild(code: string, filename: string, options: BuildOptions): Promise<import("esbuild").BuildResult>;
|
|
3
|
+
export declare function esbuild(options: BuildOptions): Promise<import("esbuild").BuildResult>;
|
|
@@ -3,7 +3,7 @@ export declare function isMiniProgramPageFile(file: string, inputDir?: string):
|
|
|
3
3
|
export declare function isMiniProgramPageSfcFile(file: string, inputDir?: string): boolean;
|
|
4
4
|
export declare function hasJsonFile(filename: string): boolean;
|
|
5
5
|
export declare function getComponentJsonFilenames(): string[];
|
|
6
|
-
export declare function findJsonFile(filename: string):
|
|
6
|
+
export declare function findJsonFile(filename: string): Record<string, any> | undefined;
|
|
7
7
|
export declare function findUsingComponents(filename: string): UsingComponents | undefined;
|
|
8
8
|
export declare function normalizeJsonFilename(filename: string): string;
|
|
9
9
|
export declare function findChangedJsonFiles(supportGlobalUsingComponents?: boolean): Map<string, string>;
|
package/dist/messages/en.d.ts
CHANGED
|
@@ -36,6 +36,5 @@ declare const _default: {
|
|
|
36
36
|
readonly 'prompt.run.devtools.quickapp-webview': "Quick App Alliance Devtools | Huawei Quick App Devtools";
|
|
37
37
|
readonly 'prompt.run.devtools.quickapp-webview-huawei': "Huawei Quick App Devtools";
|
|
38
38
|
readonly 'prompt.run.devtools.quickapp-webview-union': "Quick App Alliance Devtools";
|
|
39
|
-
readonly 'uvue.unsupported': "uvue does not support {platform} platform";
|
|
40
39
|
};
|
|
41
40
|
export default _default;
|
package/dist/messages/en.js
CHANGED
|
@@ -38,5 +38,4 @@ exports.default = {
|
|
|
38
38
|
'prompt.run.devtools.quickapp-webview': 'Quick App Alliance Devtools | Huawei Quick App Devtools',
|
|
39
39
|
'prompt.run.devtools.quickapp-webview-huawei': 'Huawei Quick App Devtools',
|
|
40
40
|
'prompt.run.devtools.quickapp-webview-union': 'Quick App Alliance Devtools',
|
|
41
|
-
'uvue.unsupported': 'uvue does not support {platform} platform',
|
|
42
41
|
};
|
package/dist/messages/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export declare const M: {
|
|
|
36
36
|
readonly 'prompt.run.devtools.quickapp-webview': "快应用联盟开发者工具 | 华为快应用开发者工具";
|
|
37
37
|
readonly 'prompt.run.devtools.quickapp-webview-huawei': "华为快应用开发者工具";
|
|
38
38
|
readonly 'prompt.run.devtools.quickapp-webview-union': "快应用联盟开发者工具";
|
|
39
|
-
readonly 'uvue.unsupported': "uvue 暂不支持 {platform} 平台";
|
|
40
39
|
} | {
|
|
41
40
|
readonly 'app.compiler.version': "Compiler version: {version}";
|
|
42
41
|
readonly compiling: "Compiling...";
|
|
@@ -75,5 +74,4 @@ export declare const M: {
|
|
|
75
74
|
readonly 'prompt.run.devtools.quickapp-webview': "Quick App Alliance Devtools | Huawei Quick App Devtools";
|
|
76
75
|
readonly 'prompt.run.devtools.quickapp-webview-huawei': "Huawei Quick App Devtools";
|
|
77
76
|
readonly 'prompt.run.devtools.quickapp-webview-union': "Quick App Alliance Devtools";
|
|
78
|
-
readonly 'uvue.unsupported': "uvue does not support {platform} platform";
|
|
79
77
|
};
|
package/dist/messages/zh_CN.d.ts
CHANGED
|
@@ -36,6 +36,5 @@ declare const _default: {
|
|
|
36
36
|
readonly 'prompt.run.devtools.quickapp-webview': "快应用联盟开发者工具 | 华为快应用开发者工具";
|
|
37
37
|
readonly 'prompt.run.devtools.quickapp-webview-huawei': "华为快应用开发者工具";
|
|
38
38
|
readonly 'prompt.run.devtools.quickapp-webview-union': "快应用联盟开发者工具";
|
|
39
|
-
readonly 'uvue.unsupported': "uvue 暂不支持 {platform} 平台";
|
|
40
39
|
};
|
|
41
40
|
export default _default;
|
package/dist/messages/zh_CN.js
CHANGED
|
@@ -38,5 +38,4 @@ exports.default = {
|
|
|
38
38
|
'prompt.run.devtools.quickapp-webview': '快应用联盟开发者工具 | 华为快应用开发者工具',
|
|
39
39
|
'prompt.run.devtools.quickapp-webview-huawei': '华为快应用开发者工具',
|
|
40
40
|
'prompt.run.devtools.quickapp-webview-union': '快应用联盟开发者工具',
|
|
41
|
-
'uvue.unsupported': 'uvue 暂不支持 {platform} 平台',
|
|
42
41
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function getPreVueContext(): any;
|
|
2
2
|
export declare function getPreNVueContext(): any;
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function initPreContext(platform: UniApp.PLATFORM, userPreContext?: Record<string, boolean> | string, utsPlatform?: typeof process.env.UNI_UTS_PLATFORM): void;
|
|
3
|
+
export declare function initPreContext(platform: UniApp.PLATFORM, userPreContext?: Record<string, boolean> | string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initPreContext = exports.
|
|
3
|
+
exports.initPreContext = exports.getPreNVueContext = exports.getPreVueContext = void 0;
|
|
4
4
|
const shared_1 = require("@vue/shared");
|
|
5
5
|
const DEFAULT_KEYS = [
|
|
6
6
|
'APP',
|
|
@@ -31,7 +31,6 @@ const DEFAULT_KEYS = [
|
|
|
31
31
|
];
|
|
32
32
|
const preVueContext = Object.create(null);
|
|
33
33
|
const preNVueContext = Object.create(null);
|
|
34
|
-
const preUVueContext = Object.create(null);
|
|
35
34
|
function getPreVueContext() {
|
|
36
35
|
return preVueContext;
|
|
37
36
|
}
|
|
@@ -40,14 +39,9 @@ function getPreNVueContext() {
|
|
|
40
39
|
return preNVueContext;
|
|
41
40
|
}
|
|
42
41
|
exports.getPreNVueContext = getPreNVueContext;
|
|
43
|
-
function
|
|
44
|
-
return preUVueContext;
|
|
45
|
-
}
|
|
46
|
-
exports.getPreUVueContext = getPreUVueContext;
|
|
47
|
-
function initPreContext(platform, userPreContext, utsPlatform) {
|
|
42
|
+
function initPreContext(platform, userPreContext) {
|
|
48
43
|
const vueContext = Object.create(null);
|
|
49
44
|
const nvueContext = Object.create(null);
|
|
50
|
-
const uvueContext = Object.create(null);
|
|
51
45
|
const defaultContext = Object.create(null);
|
|
52
46
|
DEFAULT_KEYS.forEach((key) => {
|
|
53
47
|
defaultContext[key] = false;
|
|
@@ -55,20 +49,12 @@ function initPreContext(platform, userPreContext, utsPlatform) {
|
|
|
55
49
|
defaultContext[normalizeKey(platform)] = true;
|
|
56
50
|
vueContext.VUE3 = true;
|
|
57
51
|
nvueContext.VUE3 = true;
|
|
58
|
-
uvueContext.VUE3 = true;
|
|
59
52
|
if (platform === 'app' || platform === 'app-plus') {
|
|
60
53
|
defaultContext.APP = true;
|
|
61
54
|
defaultContext.APP_PLUS = true;
|
|
62
55
|
vueContext.APP_VUE = true;
|
|
63
56
|
nvueContext.APP_NVUE = true;
|
|
64
57
|
nvueContext.APP_PLUS_NVUE = true;
|
|
65
|
-
uvueContext.APP_UVUE = true;
|
|
66
|
-
if (utsPlatform === 'app-android') {
|
|
67
|
-
uvueContext.APP_ANDROID = true;
|
|
68
|
-
}
|
|
69
|
-
else if (utsPlatform === 'app-ios') {
|
|
70
|
-
uvueContext.APP_IOS = true;
|
|
71
|
-
}
|
|
72
58
|
}
|
|
73
59
|
else if (platform.startsWith('mp-')) {
|
|
74
60
|
defaultContext.MP = true;
|
|
@@ -94,7 +80,6 @@ function initPreContext(platform, userPreContext, utsPlatform) {
|
|
|
94
80
|
}
|
|
95
81
|
(0, shared_1.extend)(preVueContext, defaultContext, vueContext);
|
|
96
82
|
(0, shared_1.extend)(preNVueContext, defaultContext, nvueContext);
|
|
97
|
-
(0, shared_1.extend)(preUVueContext, defaultContext, uvueContext);
|
|
98
83
|
}
|
|
99
84
|
exports.initPreContext = initPreContext;
|
|
100
85
|
function normalizeKey(name) {
|
|
@@ -7,7 +7,3 @@ export declare function preNVueJs(jsCode: string): any;
|
|
|
7
7
|
export declare function preNVueHtml(htmlCode: string): any;
|
|
8
8
|
export declare const preNVueCss: typeof preNVueJs;
|
|
9
9
|
export declare const preNVueJson: typeof preNVueJs;
|
|
10
|
-
export declare function preUVueJs(jsCode: string): any;
|
|
11
|
-
export declare function preUVueHtml(htmlCode: string): any;
|
|
12
|
-
export declare const preUVueCss: typeof preUVueJs;
|
|
13
|
-
export declare const preUVueJson: typeof preUVueJs;
|
package/dist/preprocess/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.preNVueJson = exports.preNVueCss = exports.preNVueHtml = exports.preNVueJs = exports.preJson = exports.preCss = exports.preHtml = exports.preJs = exports.initPreContext = void 0;
|
|
4
4
|
const context_1 = require("./context");
|
|
5
5
|
/* eslint-disable no-restricted-globals */
|
|
6
6
|
const { preprocess } = require('../../lib/preprocess');
|
|
@@ -26,13 +26,3 @@ function preNVueHtml(htmlCode) {
|
|
|
26
26
|
exports.preNVueHtml = preNVueHtml;
|
|
27
27
|
exports.preNVueCss = preNVueJs;
|
|
28
28
|
exports.preNVueJson = preNVueJs;
|
|
29
|
-
function preUVueJs(jsCode) {
|
|
30
|
-
return preprocess(jsCode, (0, context_1.getPreUVueContext)(), { type: 'js' });
|
|
31
|
-
}
|
|
32
|
-
exports.preUVueJs = preUVueJs;
|
|
33
|
-
function preUVueHtml(htmlCode) {
|
|
34
|
-
return preprocess(htmlCode, (0, context_1.getPreUVueContext)(), { type: 'html' });
|
|
35
|
-
}
|
|
36
|
-
exports.preUVueHtml = preUVueHtml;
|
|
37
|
-
exports.preUVueCss = preUVueJs;
|
|
38
|
-
exports.preUVueJson = preUVueJs;
|
package/dist/resolve.js
CHANGED
|
@@ -30,10 +30,6 @@ function relativeFile(from, to) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.relativeFile = relativeFile;
|
|
32
32
|
exports.resolveMainPathOnce = (0, uni_shared_1.once)((inputDir) => {
|
|
33
|
-
const mainUTSPath = path_1.default.resolve(inputDir, 'main.uts');
|
|
34
|
-
if (fs_1.default.existsSync(mainUTSPath)) {
|
|
35
|
-
return (0, utils_1.normalizePath)(mainUTSPath);
|
|
36
|
-
}
|
|
37
33
|
const mainTsPath = path_1.default.resolve(inputDir, 'main.ts');
|
|
38
34
|
if (fs_1.default.existsSync(mainTsPath)) {
|
|
39
35
|
return (0, utils_1.normalizePath)(mainTsPath);
|
package/dist/utils.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function normalizePagePath(pagePath: string, platform: UniApp.PLA
|
|
|
11
11
|
export declare function removeExt(str: string): string;
|
|
12
12
|
export declare function normalizeNodeModules(str: string): string;
|
|
13
13
|
export declare function normalizeMiniProgramFilename(filename: string, inputDir?: string): string;
|
|
14
|
-
export declare function normalizeParsePlugins(importer: string, babelParserPlugins?: ParserPlugin[]):
|
|
14
|
+
export declare function normalizeParsePlugins(importer: string, babelParserPlugins?: ParserPlugin[]): (import("@babel/parser").ParserPluginWithOptions | ("asyncDoExpressions" | "asyncGenerators" | "bigInt" | "classPrivateMethods" | "classPrivateProperties" | "classProperties" | "classStaticBlock" | "decimal" | "decorators-legacy" | "decoratorAutoAccessors" | "destructuringPrivate" | "doExpressions" | "dynamicImport" | "explicitResourceManagement" | "exportDefaultFrom" | "exportNamespaceFrom" | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | "logicalAssignment" | "importAssertions" | "importReflection" | "moduleBlocks" | "moduleStringNames" | "nullishCoalescingOperator" | "numericSeparator" | "objectRestSpread" | "optionalCatchBinding" | "optionalChaining" | "partialApplication" | "placeholders" | "privateIn" | "regexpUnicodeSets" | "throwExpressions" | "topLevelAwait" | "v8intrinsic" | "decorators" | "estree" | "moduleAttributes" | "pipelineOperator" | "recordAndTuple" | "typescript"))[];
|
|
15
15
|
export declare function pathToGlob(pathString: string, glob: string, options?: {
|
|
16
16
|
windows?: boolean;
|
|
17
17
|
escape?: boolean;
|
|
@@ -10,20 +10,18 @@ function defineUniMainJsPlugin(createUniMainJsPlugin) {
|
|
|
10
10
|
const opts = {
|
|
11
11
|
resolvedConfig: {},
|
|
12
12
|
filter(id) {
|
|
13
|
-
return id === mainJsPath || id === mainTsPath
|
|
13
|
+
return id === mainJsPath || id === mainTsPath;
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
const plugin = createUniMainJsPlugin(opts);
|
|
17
17
|
const origConfigResolved = plugin.configResolved;
|
|
18
18
|
let mainJsPath = '';
|
|
19
19
|
let mainTsPath = '';
|
|
20
|
-
let mainUTsPath = '';
|
|
21
20
|
plugin.configResolved = function (config) {
|
|
22
21
|
opts.resolvedConfig = config;
|
|
23
22
|
const mainPath = (0, utils_1.normalizePath)(path_1.default.resolve(process.env.UNI_INPUT_DIR, 'main'));
|
|
24
23
|
mainJsPath = mainPath + '.js';
|
|
25
24
|
mainTsPath = mainPath + '.ts';
|
|
26
|
-
mainUTsPath = mainPath + '.uts';
|
|
27
25
|
return origConfigResolved && origConfigResolved(config);
|
|
28
26
|
};
|
|
29
27
|
return plugin;
|
|
@@ -34,9 +34,8 @@ export declare function cssPlugin(config: ResolvedConfig): Plugin;
|
|
|
34
34
|
/**
|
|
35
35
|
* Plugin applied after user plugins
|
|
36
36
|
*/
|
|
37
|
-
export declare function cssPostPlugin(config: ResolvedConfig, { platform,
|
|
37
|
+
export declare function cssPostPlugin(config: ResolvedConfig, { platform, chunkCssFilename, chunkCssCode, }: {
|
|
38
38
|
platform: UniApp.PLATFORM;
|
|
39
|
-
isJsCode?: boolean;
|
|
40
39
|
chunkCssFilename: (id: string) => string | void;
|
|
41
40
|
chunkCssCode: (filename: string, cssCode: string) => Promise<string> | string;
|
|
42
41
|
}): Plugin;
|
|
@@ -122,7 +122,7 @@ function findCssModuleIds(moduleId, cssModuleIds, seen) {
|
|
|
122
122
|
const moduleInfo = this.getModuleInfo(moduleId);
|
|
123
123
|
if (moduleInfo) {
|
|
124
124
|
moduleInfo.importedIds.forEach((id) => {
|
|
125
|
-
if (id.includes(constants_1.PAGES_JSON_JS)
|
|
125
|
+
if (id.includes(constants_1.PAGES_JSON_JS)) {
|
|
126
126
|
// 查询main.js时,需要忽略pages.json.js,否则会把所有页面样式加进来
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -139,7 +139,7 @@ function findCssModuleIds(moduleId, cssModuleIds, seen) {
|
|
|
139
139
|
/**
|
|
140
140
|
* Plugin applied after user plugins
|
|
141
141
|
*/
|
|
142
|
-
function cssPostPlugin(config, { platform,
|
|
142
|
+
function cssPostPlugin(config, { platform, chunkCssFilename, chunkCssCode, }) {
|
|
143
143
|
// styles initialization in buildStart causes a styling loss in watch
|
|
144
144
|
const styles = new Map();
|
|
145
145
|
let cssChunks;
|
|
@@ -215,9 +215,6 @@ function cssPostPlugin(config, { platform, isJsCode, chunkCssFilename, chunkCssC
|
|
|
215
215
|
css = css.replace(asset_1.assetUrlRE, (_, fileHash, postfix = '') => {
|
|
216
216
|
return (0, utils_1.normalizePath)(path_1.default.relative(path_1.default.dirname(filename), (0, asset_1.getAssetFilename)(fileHash, config) + postfix));
|
|
217
217
|
});
|
|
218
|
-
if (isJsCode) {
|
|
219
|
-
return chunkCssCode(filename, css);
|
|
220
|
-
}
|
|
221
218
|
// only external @imports and @charset should exist at this point
|
|
222
219
|
// hoist them to the top of the CSS chunk per spec (#1845 and #6333)
|
|
223
220
|
if (css.includes('@import') || css.includes('@charset')) {
|
|
@@ -9,4 +9,3 @@ export declare function injectCssPlugin(config: ResolvedConfig): void;
|
|
|
9
9
|
export declare function injectCssPostPlugin(config: ResolvedConfig, newCssPostPlugin: Plugin): void;
|
|
10
10
|
export declare function replacePlugins(plugins: Plugin[], config: ResolvedConfig): void;
|
|
11
11
|
export declare function removePlugins(plugins: string | string[], config: ResolvedConfig): void;
|
|
12
|
-
export declare function insertBeforePlugin(plugin: Plugin, before: string, config: ResolvedConfig): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.removePlugins = exports.replacePlugins = exports.injectCssPostPlugin = exports.injectCssPlugin = exports.injectAssetPlugin = void 0;
|
|
4
4
|
const shared_1 = require("@vue/shared");
|
|
5
5
|
const asset_1 = require("../plugins/vitejs/plugins/asset");
|
|
6
6
|
const css_1 = require("../plugins/vitejs/plugins/css");
|
|
@@ -43,11 +43,3 @@ function removePlugins(plugins, config) {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
exports.removePlugins = removePlugins;
|
|
46
|
-
function insertBeforePlugin(plugin, before, config) {
|
|
47
|
-
const index = config.plugins.findIndex((p) => p.name === before);
|
|
48
|
-
if (index > -1) {
|
|
49
|
-
;
|
|
50
|
-
config.plugins.splice(index, 0, plugin);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.insertBeforePlugin = insertBeforePlugin;
|
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-3080120230428001",
|
|
4
4
|
"description": "@dcloudio/uni-cli-shared",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@ampproject/remapping": "^2.1.2",
|
|
25
|
-
"@babel/core": "^7.
|
|
26
|
-
"@babel/parser": "^7.
|
|
25
|
+
"@babel/core": "^7.20.5",
|
|
26
|
+
"@babel/parser": "^7.20.5",
|
|
27
27
|
"@babel/types": "^7.20.7",
|
|
28
|
-
"@dcloudio/uni-i18n": "3.0.0-alpha-
|
|
29
|
-
"@dcloudio/uni-shared": "3.0.0-alpha-
|
|
28
|
+
"@dcloudio/uni-i18n": "3.0.0-alpha-3080120230428001",
|
|
29
|
+
"@dcloudio/uni-shared": "3.0.0-alpha-3080120230428001",
|
|
30
30
|
"@intlify/core-base": "9.1.9",
|
|
31
31
|
"@intlify/shared": "9.1.9",
|
|
32
32
|
"@intlify/vue-devtools": "9.1.9",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"chokidar": "^3.5.3",
|
|
42
42
|
"compare-versions": "^3.6.0",
|
|
43
43
|
"debug": "^4.3.3",
|
|
44
|
-
"es-module-lexer": "^
|
|
44
|
+
"es-module-lexer": "^0.9.3",
|
|
45
45
|
"esbuild": "^0.17.5",
|
|
46
46
|
"estree-walker": "^2.0.2",
|
|
47
47
|
"fast-glob": "^3.2.11",
|
|
48
48
|
"fs-extra": "^10.0.0",
|
|
49
49
|
"hash-sum": "^2.0.0",
|
|
50
50
|
"jsonc-parser": "^3.0.0",
|
|
51
|
-
"magic-string": "^0.
|
|
51
|
+
"magic-string": "^0.27.0",
|
|
52
52
|
"merge": "^2.1.1",
|
|
53
53
|
"mime": "^3.0.0",
|
|
54
54
|
"module-alias": "^2.2.2",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dcloudio/uni-uts-v1": "3.0.0-alpha-
|
|
67
|
+
"@dcloudio/uni-uts-v1": "3.0.0-alpha-3080120230428001",
|
|
68
68
|
"@types/babel__core": "^7.1.19",
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"@types/estree": "^0.0.51",
|
package/lib/.DS_Store
DELETED
|
Binary file
|
package/lib/vue-i18n/.DS_Store
DELETED
|
Binary file
|