@tarojs/runner-utils 3.7.0-alpha.23 → 3.7.0-alpha.26
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 +2 -4
- package/package.json +3 -3
- package/types/vite.d.ts +2 -2
package/dist/vite.js
CHANGED
|
@@ -14,10 +14,8 @@ const constant_1 = require("./constant");
|
|
|
14
14
|
function getViteH5CompilerContext(rollupPluginContext) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
16
|
const info = process.env.NODE_ENV === 'production'
|
|
17
|
-
?
|
|
18
|
-
|
|
19
|
-
:
|
|
20
|
-
yield rollupPluginContext.load({ id: constant_1.VITE_COMPILER_LABEL });
|
|
17
|
+
? rollupPluginContext.getModuleInfo(constant_1.VITE_COMPILER_LABEL)
|
|
18
|
+
: yield rollupPluginContext.load({ id: constant_1.VITE_COMPILER_LABEL });
|
|
21
19
|
const compiler = info === null || info === void 0 ? void 0 : info.meta.viteCompilerContext;
|
|
22
20
|
return compiler;
|
|
23
21
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/runner-utils",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.26",
|
|
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/helper": "3.7.0-alpha.
|
|
23
|
-
"@tarojs/taro": "3.7.0-alpha.
|
|
22
|
+
"@tarojs/helper": "3.7.0-alpha.26",
|
|
23
|
+
"@tarojs/taro": "3.7.0-alpha.26"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
26
26
|
"rollup": {
|
package/types/vite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ViteH5CompilerContext, ViteMiniCompilerContext } from '@tarojs/taro/types/compile/viteCompilerContext';
|
|
2
2
|
import type { PluginContext } from 'rollup';
|
|
3
|
-
export declare function getViteH5CompilerContext(rollupPluginContext: PluginContext): Promise<ViteH5CompilerContext |
|
|
4
|
-
export declare function getViteMiniCompilerContext(rollupPluginContext: PluginContext): ViteMiniCompilerContext |
|
|
3
|
+
export declare function getViteH5CompilerContext(rollupPluginContext: PluginContext): Promise<ViteH5CompilerContext | void>;
|
|
4
|
+
export declare function getViteMiniCompilerContext(rollupPluginContext: PluginContext): ViteMiniCompilerContext | void;
|