powerlines 0.37.56 → 0.37.58

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.
Files changed (179) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +5 -5
  4. package/dist/astro.js +4 -4
  5. package/dist/{chunk-2ESGIL56.cjs → chunk-4WITRWLE.cjs} +153 -5
  6. package/dist/{chunk-5OE3ACWC.js → chunk-5JR5QEWF.js} +3 -3
  7. package/dist/{chunk-7LH63BFW.js → chunk-6HXWBBNZ.js} +3 -3
  8. package/dist/chunk-6ITXIBBW.cjs +12 -0
  9. package/dist/{chunk-BNVPJWSG.js → chunk-6JXP537N.js} +5 -4
  10. package/dist/{chunk-LFHXRRZX.cjs → chunk-6TGZZSR3.cjs} +5 -5
  11. package/dist/{chunk-QQ6V5SC5.cjs → chunk-DX46YDVG.cjs} +6 -6
  12. package/dist/{chunk-PQOEG6WQ.js → chunk-NAQCYDOX.js} +7 -6
  13. package/dist/{chunk-MKIL6OVG.cjs → chunk-NSSJOBJ7.cjs} +5 -4
  14. package/dist/{chunk-L4OM5KXO.js → chunk-PRCF5DYZ.js} +152 -5
  15. package/dist/chunk-Q45DEICO.cjs +12 -0
  16. package/dist/{chunk-BSKRKIB5.cjs → chunk-Q6THHV6J.cjs} +9 -8
  17. package/dist/{chunk-NUYBKMON.js → chunk-RTDA7VMA.js} +3 -3
  18. package/dist/{chunk-2VUAOV5V.js → chunk-SW7AR5KB.js} +4 -4
  19. package/dist/esbuild.cjs +7 -7
  20. package/dist/esbuild.js +4 -4
  21. package/dist/farm.cjs +3 -3
  22. package/dist/farm.js +2 -2
  23. package/dist/index.cjs +10 -10
  24. package/dist/index.js +2 -2
  25. package/dist/lib/build/esbuild.cjs +4 -4
  26. package/dist/lib/build/esbuild.js +1 -1
  27. package/dist/lib/build/index.cjs +29 -29
  28. package/dist/lib/build/index.js +9 -9
  29. package/dist/lib/build/rolldown.cjs +3 -3
  30. package/dist/lib/build/rolldown.js +2 -2
  31. package/dist/lib/build/rollup.cjs +3 -3
  32. package/dist/lib/build/rollup.js +1 -1
  33. package/dist/lib/build/rspack.cjs +2 -2
  34. package/dist/lib/build/rspack.js +1 -1
  35. package/dist/lib/build/tsdown.cjs +5 -5
  36. package/dist/lib/build/tsdown.js +1 -1
  37. package/dist/lib/build/tsup.cjs +5 -5
  38. package/dist/lib/build/tsup.js +2 -2
  39. package/dist/lib/build/unbuild.cjs +5 -5
  40. package/dist/lib/build/unbuild.js +2 -2
  41. package/dist/lib/build/vite.cjs +4 -4
  42. package/dist/lib/build/vite.js +2 -2
  43. package/dist/lib/build/webpack.cjs +2 -2
  44. package/dist/lib/build/webpack.js +1 -1
  45. package/dist/lib/{chunk-ALXWGYR7.cjs → chunk-2WYHTO47.cjs} +7 -6
  46. package/dist/lib/chunk-2WYHTO47.cjs.map +1 -0
  47. package/dist/lib/{chunk-VXFMR22Q.js → chunk-3FLDGR5G.js} +3 -3
  48. package/dist/lib/{chunk-VXFMR22Q.js.map → chunk-3FLDGR5G.js.map} +1 -1
  49. package/dist/lib/{chunk-FC4WYLMZ.cjs → chunk-4MV6GVF2.cjs} +5 -4
  50. package/dist/lib/chunk-4MV6GVF2.cjs.map +1 -0
  51. package/dist/lib/{chunk-5OPL6S37.cjs → chunk-54EBZ6DV.cjs} +7 -6
  52. package/dist/lib/chunk-54EBZ6DV.cjs.map +1 -0
  53. package/dist/lib/{chunk-FSSYT5DT.cjs → chunk-5UCYCLOL.cjs} +7 -6
  54. package/dist/lib/chunk-5UCYCLOL.cjs.map +1 -0
  55. package/dist/lib/{chunk-VOTCZHM5.js → chunk-6ZQ2QV7J.js} +5 -4
  56. package/dist/lib/chunk-6ZQ2QV7J.js.map +1 -0
  57. package/dist/lib/{chunk-ODRURQ3X.cjs → chunk-7D3MEWYE.cjs} +4 -4
  58. package/dist/lib/{chunk-ODRURQ3X.cjs.map → chunk-7D3MEWYE.cjs.map} +1 -1
  59. package/dist/lib/{chunk-VKFPSCIU.cjs → chunk-7IMYFSB5.cjs} +5 -4
  60. package/dist/lib/chunk-7IMYFSB5.cjs.map +1 -0
  61. package/dist/lib/{chunk-DTGZYBQX.cjs → chunk-7JW5GKVU.cjs} +4 -4
  62. package/dist/lib/{chunk-DTGZYBQX.cjs.map → chunk-7JW5GKVU.cjs.map} +1 -1
  63. package/dist/lib/{chunk-Y7RUTBOF.js → chunk-C2XZBNXT.js} +5 -4
  64. package/dist/lib/chunk-C2XZBNXT.js.map +1 -0
  65. package/dist/lib/{chunk-DWKRVCBP.cjs → chunk-DJM2S7RU.cjs} +171 -4
  66. package/dist/lib/chunk-DJM2S7RU.cjs.map +1 -0
  67. package/dist/lib/{chunk-FIXA5XLP.cjs → chunk-E5GAQMMD.cjs} +5 -4
  68. package/dist/lib/chunk-E5GAQMMD.cjs.map +1 -0
  69. package/dist/lib/{chunk-KJCQ3FNZ.js → chunk-HFNHWLHJ.js} +8 -5
  70. package/dist/lib/chunk-HFNHWLHJ.js.map +1 -0
  71. package/dist/lib/{chunk-C2P7PUMG.js → chunk-HMHMMXG3.js} +5 -4
  72. package/dist/lib/chunk-HMHMMXG3.js.map +1 -0
  73. package/dist/lib/{chunk-M6FABDGH.cjs → chunk-IJOS5J6D.cjs} +8 -5
  74. package/dist/lib/chunk-IJOS5J6D.cjs.map +1 -0
  75. package/dist/lib/{chunk-SLC5EL2C.js → chunk-JKESK6KE.js} +6 -5
  76. package/dist/lib/chunk-JKESK6KE.js.map +1 -0
  77. package/dist/lib/{chunk-CIBV7IDT.js → chunk-K4NZZ4XF.js} +152 -4
  78. package/dist/lib/chunk-K4NZZ4XF.js.map +1 -0
  79. package/dist/lib/{chunk-43LFJIBT.cjs → chunk-NRGFEHLP.cjs} +10 -7
  80. package/dist/lib/chunk-NRGFEHLP.cjs.map +1 -0
  81. package/dist/lib/{chunk-IJ534W5N.js → chunk-PU3KX3GM.js} +6 -5
  82. package/dist/lib/chunk-PU3KX3GM.js.map +1 -0
  83. package/dist/lib/{chunk-6OPCSOQS.js → chunk-T3IOOWLO.js} +9 -6
  84. package/dist/lib/chunk-T3IOOWLO.js.map +1 -0
  85. package/dist/lib/{chunk-L273AS74.js → chunk-TI4L43DE.js} +6 -5
  86. package/dist/lib/chunk-TI4L43DE.js.map +1 -0
  87. package/dist/lib/{chunk-VLZBQSDN.cjs → chunk-XVRSEH24.cjs} +9 -6
  88. package/dist/lib/chunk-XVRSEH24.cjs.map +1 -0
  89. package/dist/lib/{chunk-I4VVVKOI.js → chunk-ZPUQDCZY.js} +9 -6
  90. package/dist/lib/chunk-ZPUQDCZY.js.map +1 -0
  91. package/dist/lib/{chunk-PMOMJSBN.js → chunk-ZVXIXVNB.js} +3 -3
  92. package/dist/lib/{chunk-PMOMJSBN.js.map → chunk-ZVXIXVNB.js.map} +1 -1
  93. package/dist/lib/index.cjs +7 -7
  94. package/dist/lib/index.js +4 -4
  95. package/dist/lib/unplugin/factory.cjs +2 -2
  96. package/dist/lib/unplugin/factory.js +1 -1
  97. package/dist/lib/unplugin/index.cjs +2 -2
  98. package/dist/lib/unplugin/index.js +1 -1
  99. package/dist/lib/utilities/bundle.cjs +3 -3
  100. package/dist/lib/utilities/bundle.js +2 -2
  101. package/dist/lib/utilities/index.cjs +5 -5
  102. package/dist/lib/utilities/index.js +3 -3
  103. package/dist/lib/utilities/resolve.cjs +4 -4
  104. package/dist/lib/utilities/resolve.js +3 -3
  105. package/dist/next.cjs +4 -4
  106. package/dist/next.js +3 -3
  107. package/dist/nuxt.cjs +9 -9
  108. package/dist/nuxt.js +5 -5
  109. package/dist/plugin-utils/chunk-G4VBCQU2.cjs +14 -0
  110. package/dist/plugin-utils/chunk-G4VBCQU2.cjs.map +1 -0
  111. package/dist/plugin-utils/chunk-TKHJ5FOY.js +12 -0
  112. package/dist/plugin-utils/chunk-TKHJ5FOY.js.map +1 -0
  113. package/dist/plugin-utils/{context-Iv5cZYxg.d.cts → context-ImhXCCVn.d.cts} +1 -1
  114. package/dist/plugin-utils/{context-Iv5cZYxg.d.ts → context-ImhXCCVn.d.ts} +1 -1
  115. package/dist/plugin-utils/context-helpers.d.cts +1 -1
  116. package/dist/plugin-utils/context-helpers.d.ts +1 -1
  117. package/dist/plugin-utils/enforce.d.cts +1 -1
  118. package/dist/plugin-utils/enforce.d.ts +1 -1
  119. package/dist/plugin-utils/extend.d.cts +1 -1
  120. package/dist/plugin-utils/extend.d.ts +1 -1
  121. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  122. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  123. package/dist/plugin-utils/helpers.d.cts +1 -1
  124. package/dist/plugin-utils/helpers.d.ts +1 -1
  125. package/dist/plugin-utils/index.cjs +8 -3
  126. package/dist/plugin-utils/index.d.cts +2 -1
  127. package/dist/plugin-utils/index.d.ts +2 -1
  128. package/dist/plugin-utils/index.js +2 -1
  129. package/dist/plugin-utils/merge.d.cts +1 -1
  130. package/dist/plugin-utils/merge.d.ts +1 -1
  131. package/dist/plugin-utils/modules.cjs +13 -0
  132. package/dist/plugin-utils/modules.cjs.map +1 -0
  133. package/dist/plugin-utils/modules.d.cts +43 -0
  134. package/dist/plugin-utils/modules.d.ts +43 -0
  135. package/dist/plugin-utils/modules.js +4 -0
  136. package/dist/plugin-utils/modules.js.map +1 -0
  137. package/dist/plugin-utils/paths.d.cts +1 -1
  138. package/dist/plugin-utils/paths.d.ts +1 -1
  139. package/dist/rolldown.cjs +6 -6
  140. package/dist/rolldown.js +3 -3
  141. package/dist/rollup.cjs +3 -3
  142. package/dist/rollup.js +2 -2
  143. package/dist/rspack.cjs +3 -3
  144. package/dist/rspack.js +2 -2
  145. package/dist/tsdown.cjs +4 -4
  146. package/dist/tsdown.js +3 -3
  147. package/dist/tsup.cjs +5 -5
  148. package/dist/tsup.js +4 -4
  149. package/dist/unloader.cjs +3 -3
  150. package/dist/unloader.js +2 -2
  151. package/dist/unplugin.cjs +8 -8
  152. package/dist/unplugin.js +4 -4
  153. package/dist/vite.cjs +7 -7
  154. package/dist/vite.js +4 -4
  155. package/dist/webpack.cjs +6 -6
  156. package/dist/webpack.js +3 -3
  157. package/package.json +2 -2
  158. package/dist/chunk-JK5Y4ABM.cjs +0 -12
  159. package/dist/chunk-PCQFHZKL.cjs +0 -12
  160. package/dist/lib/chunk-43LFJIBT.cjs.map +0 -1
  161. package/dist/lib/chunk-5OPL6S37.cjs.map +0 -1
  162. package/dist/lib/chunk-6OPCSOQS.js.map +0 -1
  163. package/dist/lib/chunk-ALXWGYR7.cjs.map +0 -1
  164. package/dist/lib/chunk-C2P7PUMG.js.map +0 -1
  165. package/dist/lib/chunk-CIBV7IDT.js.map +0 -1
  166. package/dist/lib/chunk-DWKRVCBP.cjs.map +0 -1
  167. package/dist/lib/chunk-FC4WYLMZ.cjs.map +0 -1
  168. package/dist/lib/chunk-FIXA5XLP.cjs.map +0 -1
  169. package/dist/lib/chunk-FSSYT5DT.cjs.map +0 -1
  170. package/dist/lib/chunk-I4VVVKOI.js.map +0 -1
  171. package/dist/lib/chunk-IJ534W5N.js.map +0 -1
  172. package/dist/lib/chunk-KJCQ3FNZ.js.map +0 -1
  173. package/dist/lib/chunk-L273AS74.js.map +0 -1
  174. package/dist/lib/chunk-M6FABDGH.cjs.map +0 -1
  175. package/dist/lib/chunk-SLC5EL2C.js.map +0 -1
  176. package/dist/lib/chunk-VKFPSCIU.cjs.map +0 -1
  177. package/dist/lib/chunk-VLZBQSDN.cjs.map +0 -1
  178. package/dist/lib/chunk-VOTCZHM5.js.map +0 -1
  179. package/dist/lib/chunk-Y7RUTBOF.js.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2ESGIL56_cjs = require('./chunk-2ESGIL56.cjs');
3
+ var chunk4WITRWLE_cjs = require('./chunk-4WITRWLE.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunk2ESGIL56_cjs.PowerlinesAPI; }
13
+ get: function () { return chunk4WITRWLE_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-L4OM5KXO.js';
1
+ export { PowerlinesAPI } from './chunk-PRCF5DYZ.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBSKRKIB5_cjs = require('./chunk-BSKRKIB5.cjs');
6
- require('./chunk-MKIL6OVG.cjs');
7
- require('./chunk-LFHXRRZX.cjs');
8
- require('./chunk-2ESGIL56.cjs');
5
+ var chunkQ6THHV6J_cjs = require('./chunk-Q6THHV6J.cjs');
6
+ require('./chunk-NSSJOBJ7.cjs');
7
+ require('./chunk-6TGZZSR3.cjs');
8
+ require('./chunk-4WITRWLE.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkBSKRKIB5_cjs.vite_default(config)
18
+ chunkQ6THHV6J_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-PQOEG6WQ.js';
2
- import './chunk-BNVPJWSG.js';
3
- import './chunk-5OE3ACWC.js';
4
- import './chunk-L4OM5KXO.js';
1
+ import { vite_default } from './chunk-NAQCYDOX.js';
2
+ import './chunk-6JXP537N.js';
3
+ import './chunk-5JR5QEWF.js';
4
+ import './chunk-PRCF5DYZ.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -3,6 +3,7 @@
3
3
  var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
4
4
  var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
+ var core = require('@babel/core');
6
7
  var console = require('@storm-software/config-tools/logger/console');
7
8
  var toArray = require('@stryke/convert/to-array');
8
9
  var helpers = require('@stryke/fs/helpers');
@@ -25,6 +26,10 @@ var isSetString = require('@stryke/type-checks/is-set-string');
25
26
  var isString = require('@stryke/type-checks/is-string');
26
27
  var chalk5 = require('chalk');
27
28
  var Handlebars = require('handlebars');
29
+ var helperPluginUtils = require('@babel/helper-plugin-utils');
30
+ var t = require('@babel/types');
31
+ var filePathFns = require('@stryke/path/file-path-fns');
32
+ var isType = require('@stryke/path/is-type');
28
33
  var isParentPath = require('@stryke/path/is-parent-path');
29
34
  var prettyBytes = require('@stryke/string-format/pretty-bytes');
30
35
  var tsMorph = require('ts-morph');
@@ -34,7 +39,6 @@ var _package = require('@stryke/string-format/package');
34
39
  var superdiff = require('@donedeal0/superdiff');
35
40
  var json = require('@stryke/fs/json');
36
41
  var stormJson = require('@stryke/json/storm-json');
37
- var filePathFns = require('@stryke/path/file-path-fns');
38
42
  var titleCase = require('@stryke/string-format/title-case');
39
43
  var exists = require('@stryke/fs/exists');
40
44
  var ts = require('typescript');
@@ -56,7 +60,6 @@ var undici = require('undici');
56
60
  var jiti = require('jiti');
57
61
  var isUndefined = require('@stryke/type-checks/is-undefined');
58
62
  var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
59
- var isType = require('@stryke/path/is-type');
60
63
  var $ = require('@stryke/capnp');
61
64
  var buffer = require('@stryke/fs/buffer');
62
65
  var correctPath = require('@stryke/path/correct-path');
@@ -100,15 +103,127 @@ function _interopNamespace(e) {
100
103
 
101
104
  var chalk5__default = /*#__PURE__*/_interopDefault(chalk5);
102
105
  var Handlebars__default = /*#__PURE__*/_interopDefault(Handlebars);
106
+ var t__namespace = /*#__PURE__*/_interopNamespace(t);
103
107
  var defu7__default = /*#__PURE__*/_interopDefault(defu7);
104
108
  var ts__default = /*#__PURE__*/_interopDefault(ts);
105
109
  var $__namespace = /*#__PURE__*/_interopNamespace($);
106
110
 
107
111
  // package.json
108
112
  var name = "powerlines";
109
- var version = "0.37.55";
113
+ var version = "0.37.57";
110
114
  var package_default = {
111
115
  version};
116
+
117
+ // src/plugin-utils/modules.ts
118
+ function isBuiltinModule(context, moduleName) {
119
+ const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
120
+ return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
121
+ }
122
+ chunkPK6SKIKE_cjs.__name(isBuiltinModule, "isBuiltinModule");
123
+
124
+ // src/internal/babel/module-resolver-plugin.ts
125
+ function resolveModulePath(nodePath, state) {
126
+ if (!t__namespace.isStringLiteral(nodePath.node) || !state.resolveAll && !isBuiltinModule(state.context, nodePath.node.value)) {
127
+ return;
128
+ }
129
+ let resolvedPath = state.context?.fs.resolveSync(nodePath.node.value);
130
+ if (resolvedPath) {
131
+ if (state.filename) {
132
+ const currentFile = state.context?.fs.resolveSync(!isType.isAbsolutePath(state.filename) && state.cwd ? append.appendPath(state.filename, state.cwd) : state.filename);
133
+ if (currentFile && isType.isAbsolutePath(currentFile)) {
134
+ resolvedPath = filePathFns.relativePath(currentFile, resolvedPath);
135
+ }
136
+ nodePath.replaceWith(t__namespace.stringLiteral(replace.replaceExtension(resolvedPath)));
137
+ }
138
+ }
139
+ }
140
+ chunkPK6SKIKE_cjs.__name(resolveModulePath, "resolveModulePath");
141
+ var TRANSFORM_FUNCTIONS = [
142
+ "require",
143
+ "require.resolve",
144
+ "System.import",
145
+ // Jest methods
146
+ "jest.genMockFromModule",
147
+ "jest.mock",
148
+ "jest.unmock",
149
+ "jest.doMock",
150
+ // eslint-disable-next-line @cspell/spellchecker
151
+ "jest.dontMock",
152
+ "jest.setMock",
153
+ "jest.requireActual",
154
+ "jest.requireMock",
155
+ // Older Jest methods
156
+ "require.requireActual",
157
+ "require.requireMock"
158
+ ];
159
+ function matchesPattern(state, calleePath, pattern) {
160
+ const { node } = calleePath;
161
+ if (t__namespace.isMemberExpression(node)) {
162
+ return calleePath.matchesPattern(pattern);
163
+ }
164
+ if (!t__namespace.isIdentifier(node) || pattern.includes(".")) {
165
+ return false;
166
+ }
167
+ const name2 = pattern.split(".")[0];
168
+ return node.name === name2;
169
+ }
170
+ chunkPK6SKIKE_cjs.__name(matchesPattern, "matchesPattern");
171
+ var importVisitors = {
172
+ CallExpression: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((nodePath, state) => {
173
+ if (state.moduleResolverVisited.has(nodePath)) {
174
+ return;
175
+ }
176
+ const calleePath = nodePath.get("callee");
177
+ if (calleePath && TRANSFORM_FUNCTIONS.some((pattern) => matchesPattern(state, calleePath, pattern)) || t__namespace.isImport(nodePath.node.callee)) {
178
+ state.moduleResolverVisited.add(nodePath);
179
+ resolveModulePath(nodePath.get("arguments.0"), state);
180
+ }
181
+ }, "CallExpression"),
182
+ // eslint-disable-next-line ts/naming-convention
183
+ "ImportDeclaration|ExportDeclaration|ExportAllDeclaration": /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((nodePath, state) => {
184
+ if (!nodePath || !nodePath.get("source") || state.moduleResolverVisited.has(nodePath)) {
185
+ return;
186
+ }
187
+ state.moduleResolverVisited.add(nodePath);
188
+ resolveModulePath(nodePath.get("source"), state);
189
+ }, "ImportDeclaration|ExportDeclaration|ExportAllDeclaration")
190
+ };
191
+ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((context, options) => {
192
+ return helperPluginUtils.declare(/* @__PURE__ */ chunkPK6SKIKE_cjs.__name(function builder(api) {
193
+ let moduleResolverVisited = /* @__PURE__ */ new Set();
194
+ return {
195
+ name: "powerlines:module-resolver",
196
+ pre() {
197
+ moduleResolverVisited = /* @__PURE__ */ new Set();
198
+ },
199
+ visitor: {
200
+ Program: {
201
+ enter(programPath, state) {
202
+ programPath.traverse(importVisitors, {
203
+ ...state,
204
+ context,
205
+ moduleResolverVisited,
206
+ api,
207
+ resolveAll: options?.resolveAll ?? false
208
+ });
209
+ },
210
+ exit(programPath, state) {
211
+ programPath.traverse(importVisitors, {
212
+ ...state,
213
+ context,
214
+ moduleResolverVisited,
215
+ api,
216
+ resolveAll: options?.resolveAll ?? false
217
+ });
218
+ }
219
+ }
220
+ },
221
+ post() {
222
+ moduleResolverVisited.clear();
223
+ }
224
+ };
225
+ }, "builder"));
226
+ }, "moduleResolverBabelPlugin");
112
227
  var VirtualFileSystemHost = class extends tsMorph.InMemoryFileSystemHost {
113
228
  static {
114
229
  chunkPK6SKIKE_cjs.__name(this, "VirtualFileSystemHost");
@@ -4398,6 +4513,39 @@ ${console.formatLogMessage({
4398
4513
  }
4399
4514
  context.debug("Transforming built-ins runtime modules files.");
4400
4515
  const builtinFilePaths = await Promise.all((await context.getBuiltins()).map(async (file) => {
4516
+ const result2 = await core.transformAsync(file.code.toString(), {
4517
+ highlightCode: true,
4518
+ code: true,
4519
+ ast: false,
4520
+ cloneInputAst: false,
4521
+ comments: true,
4522
+ sourceType: "module",
4523
+ configFile: false,
4524
+ babelrc: false,
4525
+ envName: context.config.mode,
4526
+ caller: {
4527
+ name: "powerlines"
4528
+ },
4529
+ ...context.config.transform.babel,
4530
+ filename: file.path,
4531
+ plugins: [
4532
+ [
4533
+ "@babel/plugin-syntax-typescript"
4534
+ ],
4535
+ [
4536
+ moduleResolverBabelPlugin(context)
4537
+ ]
4538
+ ]
4539
+ });
4540
+ if (!result2?.code) {
4541
+ throw new Error(`Powerlines - Generate Types failed to compile ${file.id}`);
4542
+ }
4543
+ if (!file.id) {
4544
+ context.warn(`File ID is missing for a built-in runtime file at ${file.path}.`);
4545
+ file.id = replace.replacePath(replace.replacePath(file.path, context.workspaceConfig.workspaceRoot), context.builtinsPath);
4546
+ }
4547
+ context.trace(`Writing transformed built-in runtime file ${file.id}.`);
4548
+ await context.emitBuiltin(result2.code, file.id);
4401
4549
  return append.appendPath(file.path, context.builtinsPath);
4402
4550
  }));
4403
4551
  const typescriptPath = await resolve.resolvePackage("typescript");
@@ -4944,5 +5092,5 @@ exports.extendLog = extendLog;
4944
5092
  exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
4945
5093
  exports.name = name;
4946
5094
  exports.version = version;
4947
- //# sourceMappingURL=chunk-2ESGIL56.cjs.map
4948
- //# sourceMappingURL=chunk-2ESGIL56.cjs.map
5095
+ //# sourceMappingURL=chunk-4WITRWLE.cjs.map
5096
+ //# sourceMappingURL=chunk-4WITRWLE.cjs.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-L4OM5KXO.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-PRCF5DYZ.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
134
134
  __name(createUnpluginFactory, "createUnpluginFactory");
135
135
 
136
136
  export { createUnpluginFactory, getString };
137
- //# sourceMappingURL=chunk-5OE3ACWC.js.map
138
- //# sourceMappingURL=chunk-5OE3ACWC.js.map
137
+ //# sourceMappingURL=chunk-5JR5QEWF.js.map
138
+ //# sourceMappingURL=chunk-5JR5QEWF.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-5OE3ACWC.js';
1
+ import { createUnpluginFactory } from './chunk-5JR5QEWF.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-7LH63BFW.js.map
9
- //# sourceMappingURL=chunk-7LH63BFW.js.map
8
+ //# sourceMappingURL=chunk-6HXWBBNZ.js.map
9
+ //# sourceMappingURL=chunk-6HXWBBNZ.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunk6TGZZSR3_cjs = require('./chunk-6TGZZSR3.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunk6TGZZSR3_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-6ITXIBBW.cjs.map
12
+ //# sourceMappingURL=chunk-6ITXIBBW.cjs.map
@@ -59,10 +59,11 @@ export { ${key} };`;
59
59
  }
60
60
  return defu({
61
61
  alias: context.builtins.reduce((ret, id) => {
62
- if (!ret[id]) {
62
+ const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
63
+ if (!ret[moduleId]) {
63
64
  const path = context.fs.paths[id];
64
65
  if (path) {
65
- ret[id] = path;
66
+ ret[moduleId] = path;
66
67
  }
67
68
  }
68
69
  return ret;
@@ -110,5 +111,5 @@ export { ${key} };`;
110
111
  __name(extractESBuildConfig, "extractESBuildConfig");
111
112
 
112
113
  export { extractESBuildConfig };
113
- //# sourceMappingURL=chunk-BNVPJWSG.js.map
114
- //# sourceMappingURL=chunk-BNVPJWSG.js.map
114
+ //# sourceMappingURL=chunk-6JXP537N.js.map
115
+ //# sourceMappingURL=chunk-6JXP537N.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2ESGIL56_cjs = require('./chunk-2ESGIL56.cjs');
3
+ var chunk4WITRWLE_cjs = require('./chunk-4WITRWLE.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunk2ESGIL56_cjs.createLog("unplugin", config);
30
+ const log = chunk4WITRWLE_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunk2ESGIL56_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunk4WITRWLE_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-LFHXRRZX.cjs.map
141
- //# sourceMappingURL=chunk-LFHXRRZX.cjs.map
140
+ //# sourceMappingURL=chunk-6TGZZSR3.cjs.map
141
+ //# sourceMappingURL=chunk-6TGZZSR3.cjs.map
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkMKIL6OVG_cjs = require('./chunk-MKIL6OVG.cjs');
4
- var chunkLFHXRRZX_cjs = require('./chunk-LFHXRRZX.cjs');
3
+ var chunkNSSJOBJ7_cjs = require('./chunk-NSSJOBJ7.cjs');
4
+ var chunk6TGZZSR3_cjs = require('./chunk-6TGZZSR3.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunkLFHXRRZX_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunk6TGZZSR3_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
13
13
  config: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((options) => {
14
14
  options ??= {};
15
- const result = chunkMKIL6OVG_cjs.extractESBuildConfig(api.context);
15
+ const result = chunkNSSJOBJ7_cjs.extractESBuildConfig(api.context);
16
16
  for (const key in result) {
17
17
  if (isUndefined.isUndefined(options[key]) && !isUndefined.isUndefined(result[key])) {
18
18
  options[key] = result[key];
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
32
32
 
33
33
  exports.esbuild = esbuild;
34
34
  exports.esbuild_default = esbuild_default;
35
- //# sourceMappingURL=chunk-QQ6V5SC5.cjs.map
36
- //# sourceMappingURL=chunk-QQ6V5SC5.cjs.map
35
+ //# sourceMappingURL=chunk-DX46YDVG.cjs.map
36
+ //# sourceMappingURL=chunk-DX46YDVG.cjs.map
@@ -1,5 +1,5 @@
1
- import { extractESBuildConfig } from './chunk-BNVPJWSG.js';
2
- import { createUnpluginFactory } from './chunk-5OE3ACWC.js';
1
+ import { extractESBuildConfig } from './chunk-6JXP537N.js';
2
+ import { createUnpluginFactory } from './chunk-5JR5QEWF.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -29,11 +29,12 @@ function extractViteConfig(context) {
29
29
  return defu({
30
30
  resolve: {
31
31
  alias: context.builtins.reduce((ret, id) => {
32
- if (!ret.find((e) => e.find === id)) {
32
+ const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
33
+ if (!ret.find((e) => e.find === moduleId)) {
33
34
  const path = context.fs.paths[id];
34
35
  if (path) {
35
36
  ret.push({
36
- find: id,
37
+ find: moduleId,
37
38
  replacement: path
38
39
  });
39
40
  }
@@ -151,5 +152,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
152
  var vite_default = vite;
152
153
 
153
154
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-PQOEG6WQ.js.map
155
- //# sourceMappingURL=chunk-PQOEG6WQ.js.map
155
+ //# sourceMappingURL=chunk-NAQCYDOX.js.map
156
+ //# sourceMappingURL=chunk-NAQCYDOX.js.map
@@ -65,10 +65,11 @@ export { ${key} };`;
65
65
  }
66
66
  return defu__default.default({
67
67
  alias: context.builtins.reduce((ret, id) => {
68
- if (!ret[id]) {
68
+ const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
69
+ if (!ret[moduleId]) {
69
70
  const path = context.fs.paths[id];
70
71
  if (path) {
71
- ret[id] = path;
72
+ ret[moduleId] = path;
72
73
  }
73
74
  }
74
75
  return ret;
@@ -116,5 +117,5 @@ export { ${key} };`;
116
117
  chunkPK6SKIKE_cjs.__name(extractESBuildConfig, "extractESBuildConfig");
117
118
 
118
119
  exports.extractESBuildConfig = extractESBuildConfig;
119
- //# sourceMappingURL=chunk-MKIL6OVG.cjs.map
120
- //# sourceMappingURL=chunk-MKIL6OVG.cjs.map
120
+ //# sourceMappingURL=chunk-NSSJOBJ7.cjs.map
121
+ //# sourceMappingURL=chunk-NSSJOBJ7.cjs.map
@@ -1,6 +1,7 @@
1
1
  import { PLUGIN_NON_HOOK_FIELDS, PLUGIN_HOOKS_FIELDS } from './chunk-PQXP7XQK.js';
2
2
  import { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
+ import { transformAsync } from '@babel/core';
4
5
  import { formatLogMessage } from '@storm-software/config-tools/logger/console';
5
6
  import { toArray } from '@stryke/convert/to-array';
6
7
  import { createDirectorySync, createDirectory } from '@stryke/fs/helpers';
@@ -23,6 +24,10 @@ import { isSetString } from '@stryke/type-checks/is-set-string';
23
24
  import { isString } from '@stryke/type-checks/is-string';
24
25
  import chalk5 from 'chalk';
25
26
  import Handlebars from 'handlebars';
27
+ import { declare } from '@babel/helper-plugin-utils';
28
+ import * as t from '@babel/types';
29
+ import { hasFileExtension, findFilePath, findFileName, findFileExtensionSafe, findFileDotExtensionSafe, relativePath } from '@stryke/path/file-path-fns';
30
+ import { isAbsolutePath } from '@stryke/path/is-type';
26
31
  import { isParentPath } from '@stryke/path/is-parent-path';
27
32
  import { prettyBytes } from '@stryke/string-format/pretty-bytes';
28
33
  import { InMemoryFileSystemHost, Project, DiagnosticCategory } from 'ts-morph';
@@ -32,7 +37,6 @@ import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/st
32
37
  import { getObjectDiff } from '@donedeal0/superdiff';
33
38
  import { readJsonFile, readJsonFileSync } from '@stryke/fs/json';
34
39
  import { StormJSON } from '@stryke/json/storm-json';
35
- import { hasFileExtension, findFilePath, findFileName, findFileExtensionSafe, findFileDotExtensionSafe, relativePath } from '@stryke/path/file-path-fns';
36
40
  import { titleCase } from '@stryke/string-format/title-case';
37
41
  import { existsSync, exists } from '@stryke/fs/exists';
38
42
  import ts from 'typescript';
@@ -54,7 +58,6 @@ import { Agent, setGlobalDispatcher, interceptors, Response } from 'undici';
54
58
  import { createJiti } from 'jiti';
55
59
  import { isUndefined } from '@stryke/type-checks/is-undefined';
56
60
  import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
57
- import { isAbsolutePath } from '@stryke/path/is-type';
58
61
  import * as $ from '@stryke/capnp';
59
62
  import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
60
63
  import { correctPath, stripStars } from '@stryke/path/correct-path';
@@ -78,9 +81,120 @@ import '@stryke/fs/remove-file';
78
81
 
79
82
  // package.json
80
83
  var name = "powerlines";
81
- var version = "0.37.55";
84
+ var version = "0.37.57";
82
85
  var package_default = {
83
86
  version};
87
+
88
+ // src/plugin-utils/modules.ts
89
+ function isBuiltinModule(context, moduleName) {
90
+ const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
91
+ return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
92
+ }
93
+ __name(isBuiltinModule, "isBuiltinModule");
94
+
95
+ // src/internal/babel/module-resolver-plugin.ts
96
+ function resolveModulePath(nodePath, state) {
97
+ if (!t.isStringLiteral(nodePath.node) || !state.resolveAll && !isBuiltinModule(state.context, nodePath.node.value)) {
98
+ return;
99
+ }
100
+ let resolvedPath = state.context?.fs.resolveSync(nodePath.node.value);
101
+ if (resolvedPath) {
102
+ if (state.filename) {
103
+ const currentFile = state.context?.fs.resolveSync(!isAbsolutePath(state.filename) && state.cwd ? appendPath(state.filename, state.cwd) : state.filename);
104
+ if (currentFile && isAbsolutePath(currentFile)) {
105
+ resolvedPath = relativePath(currentFile, resolvedPath);
106
+ }
107
+ nodePath.replaceWith(t.stringLiteral(replaceExtension(resolvedPath)));
108
+ }
109
+ }
110
+ }
111
+ __name(resolveModulePath, "resolveModulePath");
112
+ var TRANSFORM_FUNCTIONS = [
113
+ "require",
114
+ "require.resolve",
115
+ "System.import",
116
+ // Jest methods
117
+ "jest.genMockFromModule",
118
+ "jest.mock",
119
+ "jest.unmock",
120
+ "jest.doMock",
121
+ // eslint-disable-next-line @cspell/spellchecker
122
+ "jest.dontMock",
123
+ "jest.setMock",
124
+ "jest.requireActual",
125
+ "jest.requireMock",
126
+ // Older Jest methods
127
+ "require.requireActual",
128
+ "require.requireMock"
129
+ ];
130
+ function matchesPattern(state, calleePath, pattern) {
131
+ const { node } = calleePath;
132
+ if (t.isMemberExpression(node)) {
133
+ return calleePath.matchesPattern(pattern);
134
+ }
135
+ if (!t.isIdentifier(node) || pattern.includes(".")) {
136
+ return false;
137
+ }
138
+ const name2 = pattern.split(".")[0];
139
+ return node.name === name2;
140
+ }
141
+ __name(matchesPattern, "matchesPattern");
142
+ var importVisitors = {
143
+ CallExpression: /* @__PURE__ */ __name((nodePath, state) => {
144
+ if (state.moduleResolverVisited.has(nodePath)) {
145
+ return;
146
+ }
147
+ const calleePath = nodePath.get("callee");
148
+ if (calleePath && TRANSFORM_FUNCTIONS.some((pattern) => matchesPattern(state, calleePath, pattern)) || t.isImport(nodePath.node.callee)) {
149
+ state.moduleResolverVisited.add(nodePath);
150
+ resolveModulePath(nodePath.get("arguments.0"), state);
151
+ }
152
+ }, "CallExpression"),
153
+ // eslint-disable-next-line ts/naming-convention
154
+ "ImportDeclaration|ExportDeclaration|ExportAllDeclaration": /* @__PURE__ */ __name((nodePath, state) => {
155
+ if (!nodePath || !nodePath.get("source") || state.moduleResolverVisited.has(nodePath)) {
156
+ return;
157
+ }
158
+ state.moduleResolverVisited.add(nodePath);
159
+ resolveModulePath(nodePath.get("source"), state);
160
+ }, "ImportDeclaration|ExportDeclaration|ExportAllDeclaration")
161
+ };
162
+ var moduleResolverBabelPlugin = /* @__PURE__ */ __name((context, options) => {
163
+ return declare(/* @__PURE__ */ __name(function builder(api) {
164
+ let moduleResolverVisited = /* @__PURE__ */ new Set();
165
+ return {
166
+ name: "powerlines:module-resolver",
167
+ pre() {
168
+ moduleResolverVisited = /* @__PURE__ */ new Set();
169
+ },
170
+ visitor: {
171
+ Program: {
172
+ enter(programPath, state) {
173
+ programPath.traverse(importVisitors, {
174
+ ...state,
175
+ context,
176
+ moduleResolverVisited,
177
+ api,
178
+ resolveAll: options?.resolveAll ?? false
179
+ });
180
+ },
181
+ exit(programPath, state) {
182
+ programPath.traverse(importVisitors, {
183
+ ...state,
184
+ context,
185
+ moduleResolverVisited,
186
+ api,
187
+ resolveAll: options?.resolveAll ?? false
188
+ });
189
+ }
190
+ }
191
+ },
192
+ post() {
193
+ moduleResolverVisited.clear();
194
+ }
195
+ };
196
+ }, "builder"));
197
+ }, "moduleResolverBabelPlugin");
84
198
  var VirtualFileSystemHost = class extends InMemoryFileSystemHost {
85
199
  static {
86
200
  __name(this, "VirtualFileSystemHost");
@@ -4370,6 +4484,39 @@ ${formatLogMessage({
4370
4484
  }
4371
4485
  context.debug("Transforming built-ins runtime modules files.");
4372
4486
  const builtinFilePaths = await Promise.all((await context.getBuiltins()).map(async (file) => {
4487
+ const result2 = await transformAsync(file.code.toString(), {
4488
+ highlightCode: true,
4489
+ code: true,
4490
+ ast: false,
4491
+ cloneInputAst: false,
4492
+ comments: true,
4493
+ sourceType: "module",
4494
+ configFile: false,
4495
+ babelrc: false,
4496
+ envName: context.config.mode,
4497
+ caller: {
4498
+ name: "powerlines"
4499
+ },
4500
+ ...context.config.transform.babel,
4501
+ filename: file.path,
4502
+ plugins: [
4503
+ [
4504
+ "@babel/plugin-syntax-typescript"
4505
+ ],
4506
+ [
4507
+ moduleResolverBabelPlugin(context)
4508
+ ]
4509
+ ]
4510
+ });
4511
+ if (!result2?.code) {
4512
+ throw new Error(`Powerlines - Generate Types failed to compile ${file.id}`);
4513
+ }
4514
+ if (!file.id) {
4515
+ context.warn(`File ID is missing for a built-in runtime file at ${file.path}.`);
4516
+ file.id = replacePath(replacePath(file.path, context.workspaceConfig.workspaceRoot), context.builtinsPath);
4517
+ }
4518
+ context.trace(`Writing transformed built-in runtime file ${file.id}.`);
4519
+ await context.emitBuiltin(result2.code, file.id);
4373
4520
  return appendPath(file.path, context.builtinsPath);
4374
4521
  }));
4375
4522
  const typescriptPath = await resolvePackage("typescript");
@@ -4904,5 +5051,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4904
5051
  };
4905
5052
 
4906
5053
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
4907
- //# sourceMappingURL=chunk-L4OM5KXO.js.map
4908
- //# sourceMappingURL=chunk-L4OM5KXO.js.map
5054
+ //# sourceMappingURL=chunk-PRCF5DYZ.js.map
5055
+ //# sourceMappingURL=chunk-PRCF5DYZ.js.map