@tarojs/runner-utils 3.7.0-canary.6 → 4.0.0-alpha.0
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/vite.js +7 -1
- package/package.json +3 -3
- package/types/vite.d.ts +2 -1
package/dist/vite.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getViteMiniCompilerContext = exports.getViteH5CompilerContext = void 0;
|
|
12
|
+
exports.getViteMiniCompilerContext = exports.getViteHarmonyCompilerContext = exports.getViteH5CompilerContext = void 0;
|
|
13
13
|
const constant_1 = require("./constant");
|
|
14
14
|
function getViteH5CompilerContext(rollupPluginContext) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -21,6 +21,12 @@ function getViteH5CompilerContext(rollupPluginContext) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
exports.getViteH5CompilerContext = getViteH5CompilerContext;
|
|
24
|
+
function getViteHarmonyCompilerContext(rollupPluginContext) {
|
|
25
|
+
const info = rollupPluginContext.getModuleInfo(constant_1.VITE_COMPILER_LABEL);
|
|
26
|
+
const compiler = info === null || info === void 0 ? void 0 : info.meta.viteCompilerContext;
|
|
27
|
+
return compiler;
|
|
28
|
+
}
|
|
29
|
+
exports.getViteHarmonyCompilerContext = getViteHarmonyCompilerContext;
|
|
24
30
|
function getViteMiniCompilerContext(rollupPluginContext) {
|
|
25
31
|
const info = rollupPluginContext.getModuleInfo(constant_1.VITE_COMPILER_LABEL);
|
|
26
32
|
const compiler = info === null || info === void 0 ? void 0 : info.meta.viteCompilerContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/runner-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.0",
|
|
4
4
|
"description": "Taro runner utilities.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"scss-bundle": "^3.0.2",
|
|
22
|
-
"@tarojs/
|
|
23
|
-
"@tarojs/
|
|
22
|
+
"@tarojs/taro": "4.0.0-alpha.0",
|
|
23
|
+
"@tarojs/helper": "4.0.0-alpha.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
26
26
|
"rollup": {
|
package/types/vite.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ViteH5CompilerContext, ViteMiniCompilerContext } from '@tarojs/taro/types/compile/viteCompilerContext';
|
|
1
|
+
import type { ViteH5CompilerContext, ViteHarmonyCompilerContext, ViteMiniCompilerContext } from '@tarojs/taro/types/compile/viteCompilerContext';
|
|
2
2
|
import type { PluginContext } from 'rollup';
|
|
3
3
|
export declare function getViteH5CompilerContext(rollupPluginContext: PluginContext): Promise<ViteH5CompilerContext | void>;
|
|
4
|
+
export declare function getViteHarmonyCompilerContext(rollupPluginContext: PluginContext): ViteHarmonyCompilerContext | void;
|
|
4
5
|
export declare function getViteMiniCompilerContext(rollupPluginContext: PluginContext): ViteMiniCompilerContext | void;
|