transone-cli 0.3.0 → 0.4.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.
@@ -0,0 +1,19 @@
1
+ // @bun
2
+ import {
3
+ __require
4
+ } from "./index-yb2wsc7f.js";
5
+
6
+ // src/mp/ts-loader.ts
7
+ var tsModule = null;
8
+ async function loadTypescript() {
9
+ if (tsModule) {
10
+ return tsModule;
11
+ }
12
+ tsModule = await import("typescript");
13
+ return tsModule;
14
+ }
15
+
16
+ export { loadTypescript };
17
+
18
+ //# debugId=3D29E55C485A9A1264756E2164756E21
19
+ //# sourceMappingURL=index-k1qfvp0y.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/mp/ts-loader.ts"],
4
+ "sourcesContent": [
5
+ "import type * as tsTypes from 'typescript';\n\nlet tsModule: typeof tsTypes | null = null;\n\n/**\n * 惰性加载 TypeScript 编译器 API:只有 `transone build --target mp-*` 路径\n * 才加载,常规 build/dev 不受影响。模块级缓存避免重复加载。\n */\nexport async function loadTypescript(): Promise<typeof tsTypes> {\n if (tsModule) {\n return tsModule;\n }\n tsModule = await import('typescript');\n return tsModule;\n}\n"
6
+ ],
7
+ "mappings": ";;;;;;AAEA,IAAI,WAAkC;AAMtC,eAAsB,cAAc,GAA4B;AAAA,EAC9D,IAAI,UAAU;AAAA,IACZ,OAAO;AAAA,EACT;AAAA,EACA,WAAW,MAAa;AAAA,EACxB,OAAO;AAAA;",
8
+ "debugId": "3D29E55C485A9A1264756E2164756E21",
9
+ "names": []
10
+ }