powerlines 0.37.55 → 0.37.57
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/api.cjs +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.js +3 -3
- package/dist/{chunk-6YCSSTVC.js → chunk-36CMV3CQ.js} +3 -3
- package/dist/chunk-5CHXFWBK.cjs +12 -0
- package/dist/{chunk-3IBKHRRH.js → chunk-63NHSIGB.js} +3 -3
- package/dist/{chunk-P24DSFF4.cjs → chunk-6GAEDFN4.cjs} +18 -7
- package/dist/{chunk-6DKPMU3L.cjs → chunk-7L2E5YIM.cjs} +5 -5
- package/dist/chunk-CIMSOZYQ.cjs +12 -0
- package/dist/{chunk-6VDZHJEH.cjs → chunk-F3EMUOG6.cjs} +4 -4
- package/dist/{chunk-EHCLZGBR.js → chunk-IUYN4H4X.js} +3 -3
- package/dist/{chunk-CUGOCGSK.cjs → chunk-NPOQ26XB.cjs} +4 -4
- package/dist/{chunk-XIBDIPTT.js → chunk-O5MRNC4W.js} +18 -7
- package/dist/{chunk-BW5NDBWH.js → chunk-OVLE437L.js} +3 -3
- package/dist/{chunk-LX3ZZP62.js → chunk-UID2OOSN.js} +3 -3
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/lib/{chunk-57INYYJ7.cjs → chunk-EFE7FA73.cjs} +18 -7
- package/dist/lib/chunk-EFE7FA73.cjs.map +1 -0
- package/dist/lib/{chunk-LGJOP2GH.js → chunk-S2BYV2S6.js} +18 -7
- package/dist/lib/chunk-S2BYV2S6.js.map +1 -0
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +4 -4
- package/dist/plugin-utils/chunk-G4VBCQU2.cjs +14 -0
- package/dist/plugin-utils/chunk-G4VBCQU2.cjs.map +1 -0
- package/dist/plugin-utils/chunk-TKHJ5FOY.js +12 -0
- package/dist/plugin-utils/chunk-TKHJ5FOY.js.map +1 -0
- package/dist/plugin-utils/{context-Iv5cZYxg.d.cts → context-ImhXCCVn.d.cts} +1 -1
- package/dist/plugin-utils/{context-Iv5cZYxg.d.ts → context-ImhXCCVn.d.ts} +1 -1
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.cjs +8 -3
- package/dist/plugin-utils/index.d.cts +2 -1
- package/dist/plugin-utils/index.d.ts +2 -1
- package/dist/plugin-utils/index.js +2 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/modules.cjs +13 -0
- package/dist/plugin-utils/modules.cjs.map +1 -0
- package/dist/plugin-utils/modules.d.cts +43 -0
- package/dist/plugin-utils/modules.d.ts +43 -0
- package/dist/plugin-utils/modules.js +4 -0
- package/dist/plugin-utils/modules.js.map +1 -0
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-D7545A3W.cjs +0 -12
- package/dist/chunk-YTXKB2NX.cjs +0 -12
- package/dist/lib/chunk-57INYYJ7.cjs.map +0 -1
- package/dist/lib/chunk-LGJOP2GH.js.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6GAEDFN4_cjs = require('./chunk-6GAEDFN4.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
|
|
13
|
+
get: function () { return chunk6GAEDFN4_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkNPOQ26XB_cjs = require('./chunk-NPOQ26XB.cjs');
|
|
6
6
|
require('./chunk-MKIL6OVG.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-7L2E5YIM.cjs');
|
|
8
|
+
require('./chunk-6GAEDFN4.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
|
-
|
|
18
|
+
chunkNPOQ26XB_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-
|
|
1
|
+
import { vite_default } from './chunk-IUYN4H4X.js';
|
|
2
2
|
import './chunk-BNVPJWSG.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-UID2OOSN.js';
|
|
4
|
+
import './chunk-O5MRNC4W.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BNVPJWSG.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-UID2OOSN.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-36CMV3CQ.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-36CMV3CQ.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-5CHXFWBK.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-5CHXFWBK.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-UID2OOSN.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-63NHSIGB.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-63NHSIGB.js.map
|
|
@@ -110,11 +110,20 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
110
110
|
|
|
111
111
|
// package.json
|
|
112
112
|
var name = "powerlines";
|
|
113
|
-
var version = "0.37.
|
|
113
|
+
var version = "0.37.56";
|
|
114
114
|
var package_default = {
|
|
115
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
|
|
116
125
|
function resolveModulePath(nodePath, state) {
|
|
117
|
-
if (!t__namespace.isStringLiteral(nodePath.node)) {
|
|
126
|
+
if (!t__namespace.isStringLiteral(nodePath.node) || !state.resolveAll && !isBuiltinModule(state.context, nodePath.node.value)) {
|
|
118
127
|
return;
|
|
119
128
|
}
|
|
120
129
|
const resolvedPath = state.context?.fs.resolveSync(nodePath.node.value);
|
|
@@ -176,7 +185,7 @@ var importVisitors = {
|
|
|
176
185
|
resolveModulePath(nodePath.get("source"), state);
|
|
177
186
|
}, "ImportDeclaration|ExportDeclaration|ExportAllDeclaration")
|
|
178
187
|
};
|
|
179
|
-
var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((context) => {
|
|
188
|
+
var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((context, options) => {
|
|
180
189
|
return helperPluginUtils.declare(/* @__PURE__ */ chunkPK6SKIKE_cjs.__name(function builder(api) {
|
|
181
190
|
let moduleResolverVisited = /* @__PURE__ */ new Set();
|
|
182
191
|
return {
|
|
@@ -194,7 +203,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((contex
|
|
|
194
203
|
...state,
|
|
195
204
|
context,
|
|
196
205
|
moduleResolverVisited,
|
|
197
|
-
api
|
|
206
|
+
api,
|
|
207
|
+
resolveAll: options?.resolveAll ?? false
|
|
198
208
|
});
|
|
199
209
|
},
|
|
200
210
|
exit(programPath, state) {
|
|
@@ -202,7 +212,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((contex
|
|
|
202
212
|
...state,
|
|
203
213
|
context,
|
|
204
214
|
moduleResolverVisited,
|
|
205
|
-
api
|
|
215
|
+
api,
|
|
216
|
+
resolveAll: options?.resolveAll ?? false
|
|
206
217
|
});
|
|
207
218
|
}
|
|
208
219
|
}
|
|
@@ -5081,5 +5092,5 @@ exports.extendLog = extendLog;
|
|
|
5081
5092
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5082
5093
|
exports.name = name;
|
|
5083
5094
|
exports.version = version;
|
|
5084
|
-
//# sourceMappingURL=chunk-
|
|
5085
|
-
//# sourceMappingURL=chunk-
|
|
5095
|
+
//# sourceMappingURL=chunk-6GAEDFN4.cjs.map
|
|
5096
|
+
//# sourceMappingURL=chunk-6GAEDFN4.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6GAEDFN4_cjs = require('./chunk-6GAEDFN4.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 =
|
|
30
|
+
const log = chunk6GAEDFN4_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
|
|
41
|
+
api = await chunk6GAEDFN4_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-
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-7L2E5YIM.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-7L2E5YIM.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-CIMSOZYQ.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-CIMSOZYQ.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkMKIL6OVG_cjs = require('./chunk-MKIL6OVG.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.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(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -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-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-F3EMUOG6.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-F3EMUOG6.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BNVPJWSG.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-UID2OOSN.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';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-IUYN4H4X.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-IUYN4H4X.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkMKIL6OVG_cjs = require('./chunk-MKIL6OVG.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-NPOQ26XB.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-NPOQ26XB.cjs.map
|
|
@@ -81,11 +81,20 @@ import '@stryke/fs/remove-file';
|
|
|
81
81
|
|
|
82
82
|
// package.json
|
|
83
83
|
var name = "powerlines";
|
|
84
|
-
var version = "0.37.
|
|
84
|
+
var version = "0.37.56";
|
|
85
85
|
var package_default = {
|
|
86
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
|
|
87
96
|
function resolveModulePath(nodePath, state) {
|
|
88
|
-
if (!t.isStringLiteral(nodePath.node)) {
|
|
97
|
+
if (!t.isStringLiteral(nodePath.node) || !state.resolveAll && !isBuiltinModule(state.context, nodePath.node.value)) {
|
|
89
98
|
return;
|
|
90
99
|
}
|
|
91
100
|
const resolvedPath = state.context?.fs.resolveSync(nodePath.node.value);
|
|
@@ -147,7 +156,7 @@ var importVisitors = {
|
|
|
147
156
|
resolveModulePath(nodePath.get("source"), state);
|
|
148
157
|
}, "ImportDeclaration|ExportDeclaration|ExportAllDeclaration")
|
|
149
158
|
};
|
|
150
|
-
var moduleResolverBabelPlugin = /* @__PURE__ */ __name((context) => {
|
|
159
|
+
var moduleResolverBabelPlugin = /* @__PURE__ */ __name((context, options) => {
|
|
151
160
|
return declare(/* @__PURE__ */ __name(function builder(api) {
|
|
152
161
|
let moduleResolverVisited = /* @__PURE__ */ new Set();
|
|
153
162
|
return {
|
|
@@ -165,7 +174,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ __name((context) => {
|
|
|
165
174
|
...state,
|
|
166
175
|
context,
|
|
167
176
|
moduleResolverVisited,
|
|
168
|
-
api
|
|
177
|
+
api,
|
|
178
|
+
resolveAll: options?.resolveAll ?? false
|
|
169
179
|
});
|
|
170
180
|
},
|
|
171
181
|
exit(programPath, state) {
|
|
@@ -173,7 +183,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ __name((context) => {
|
|
|
173
183
|
...state,
|
|
174
184
|
context,
|
|
175
185
|
moduleResolverVisited,
|
|
176
|
-
api
|
|
186
|
+
api,
|
|
187
|
+
resolveAll: options?.resolveAll ?? false
|
|
177
188
|
});
|
|
178
189
|
}
|
|
179
190
|
}
|
|
@@ -5040,5 +5051,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5040
5051
|
};
|
|
5041
5052
|
|
|
5042
5053
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5043
|
-
//# sourceMappingURL=chunk-
|
|
5044
|
-
//# sourceMappingURL=chunk-
|
|
5054
|
+
//# sourceMappingURL=chunk-O5MRNC4W.js.map
|
|
5055
|
+
//# sourceMappingURL=chunk-O5MRNC4W.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-UID2OOSN.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-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-OVLE437L.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-OVLE437L.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-O5MRNC4W.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-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-UID2OOSN.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-UID2OOSN.js.map
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkF3EMUOG6_cjs = require('./chunk-F3EMUOG6.cjs');
|
|
6
6
|
require('./chunk-MKIL6OVG.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-7L2E5YIM.cjs');
|
|
8
|
+
require('./chunk-6GAEDFN4.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkF3EMUOG6_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkF3EMUOG6_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkF3EMUOG6_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-36CMV3CQ.js';
|
|
2
2
|
import './chunk-BNVPJWSG.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-UID2OOSN.js';
|
|
4
|
+
import './chunk-O5MRNC4W.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.cjs');
|
|
6
|
+
require('./chunk-6GAEDFN4.cjs');
|
|
7
7
|
require('./chunk-B6DVCLP5.cjs');
|
|
8
8
|
require('./chunk-V5WOGN7O.cjs');
|
|
9
9
|
require('./chunk-Z6ARQDHR.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-UID2OOSN.js';
|
|
2
|
+
import './chunk-O5MRNC4W.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
|
|
|
13
13
|
require('./chunk-D6GGZQLC.cjs');
|
|
14
14
|
var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
|
|
15
15
|
var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunk6GAEDFN4_cjs = require('./chunk-6GAEDFN4.cjs');
|
|
17
17
|
var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
|
|
18
18
|
var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
|
|
19
19
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
|
|
|
27
27
|
async function createPowerlines(options = {}) {
|
|
28
28
|
options.root ??= process.cwd();
|
|
29
29
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
|
|
30
|
-
return
|
|
30
|
+
return chunk6GAEDFN4_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunk6GAEDFN4_cjs.PowerlinesAPI;
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "STORAGE_PRESETS", {
|
|
36
36
|
enumerable: true,
|
|
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FileId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk6GAEDFN4_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk6GAEDFN4_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk6GAEDFN4_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk6GAEDFN4_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk6GAEDFN4_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk6GAEDFN4_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk6GAEDFN4_cjs._capnpFileId; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
|
|
80
80
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
|
|
|
9
9
|
import './chunk-OD4BINRW.js';
|
|
10
10
|
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
|
|
11
11
|
export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
|
|
12
|
-
import { PowerlinesAPI } from './chunk-
|
|
13
|
-
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-
|
|
12
|
+
import { PowerlinesAPI } from './chunk-O5MRNC4W.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-O5MRNC4W.js';
|
|
14
14
|
export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
|
|
15
15
|
export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
|
|
16
16
|
export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
|
|
@@ -75,9 +75,18 @@ var t__namespace = /*#__PURE__*/_interopNamespace(t);
|
|
|
75
75
|
|
|
76
76
|
// package.json
|
|
77
77
|
var package_default = {
|
|
78
|
-
version: "0.37.
|
|
78
|
+
version: "0.37.56"};
|
|
79
|
+
|
|
80
|
+
// src/plugin-utils/modules.ts
|
|
81
|
+
function isBuiltinModule(context, moduleName) {
|
|
82
|
+
const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
|
|
83
|
+
return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
|
|
84
|
+
}
|
|
85
|
+
chunkPK6SKIKE_cjs.__name(isBuiltinModule, "isBuiltinModule");
|
|
86
|
+
|
|
87
|
+
// src/internal/babel/module-resolver-plugin.ts
|
|
79
88
|
function resolveModulePath(nodePath, state) {
|
|
80
|
-
if (!t__namespace.isStringLiteral(nodePath.node)) {
|
|
89
|
+
if (!t__namespace.isStringLiteral(nodePath.node) || !state.resolveAll && !isBuiltinModule(state.context, nodePath.node.value)) {
|
|
81
90
|
return;
|
|
82
91
|
}
|
|
83
92
|
const resolvedPath = state.context?.fs.resolveSync(nodePath.node.value);
|
|
@@ -139,7 +148,7 @@ var importVisitors = {
|
|
|
139
148
|
resolveModulePath(nodePath.get("source"), state);
|
|
140
149
|
}, "ImportDeclaration|ExportDeclaration|ExportAllDeclaration")
|
|
141
150
|
};
|
|
142
|
-
var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((context) => {
|
|
151
|
+
var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((context, options) => {
|
|
143
152
|
return helperPluginUtils.declare(/* @__PURE__ */ chunkPK6SKIKE_cjs.__name(function builder(api) {
|
|
144
153
|
let moduleResolverVisited = /* @__PURE__ */ new Set();
|
|
145
154
|
return {
|
|
@@ -157,7 +166,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((contex
|
|
|
157
166
|
...state,
|
|
158
167
|
context,
|
|
159
168
|
moduleResolverVisited,
|
|
160
|
-
api
|
|
169
|
+
api,
|
|
170
|
+
resolveAll: options?.resolveAll ?? false
|
|
161
171
|
});
|
|
162
172
|
},
|
|
163
173
|
exit(programPath, state) {
|
|
@@ -165,7 +175,8 @@ var moduleResolverBabelPlugin = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((contex
|
|
|
165
175
|
...state,
|
|
166
176
|
context,
|
|
167
177
|
moduleResolverVisited,
|
|
168
|
-
api
|
|
178
|
+
api,
|
|
179
|
+
resolveAll: options?.resolveAll ?? false
|
|
169
180
|
});
|
|
170
181
|
}
|
|
171
182
|
}
|
|
@@ -1269,5 +1280,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
1269
1280
|
chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
1270
1281
|
|
|
1271
1282
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
1272
|
-
//# sourceMappingURL=chunk-
|
|
1273
|
-
//# sourceMappingURL=chunk-
|
|
1283
|
+
//# sourceMappingURL=chunk-EFE7FA73.cjs.map
|
|
1284
|
+
//# sourceMappingURL=chunk-EFE7FA73.cjs.map
|