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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
4
|
+
|
|
5
|
+
// src/plugin-utils/modules.ts
|
|
6
|
+
function isBuiltinModule(context, moduleName) {
|
|
7
|
+
const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
|
|
8
|
+
return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
|
|
9
|
+
}
|
|
10
|
+
chunkPK6SKIKE_cjs.__name(isBuiltinModule, "isBuiltinModule");
|
|
11
|
+
|
|
12
|
+
exports.isBuiltinModule = isBuiltinModule;
|
|
13
|
+
//# sourceMappingURL=chunk-G4VBCQU2.cjs.map
|
|
14
|
+
//# sourceMappingURL=chunk-G4VBCQU2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/plugin-utils/modules.ts"],"names":["isBuiltinModule","context","moduleName","prefix","config","output","builtinPrefix","framework","startsWith","replace","Object","keys","fs","metadata","filter","key","type","includes"],"mappings":";;;;;AA2BO,SAASA,eAAAA,CAAgBC,SAAkBC,UAAAA,EAAkB;AAClE,EAAA,MAAMC,SACJF,OAAAA,CAAQG,MAAAA,CAAOC,QAAQC,aAAAA,IACvBL,OAAAA,CAAQG,QAAQG,SAAAA,IAChB,YAAA;AAEF,EAAA,OACEL,UAAAA,CAAWM,UAAAA,CAAW,CAAA,EAAGL,MAAAA,CAAOM,OAAAA,CAAQ,IAAA,EAAM,EAAA,CAAA,CAAA,CAAA,CAAM,CAAA,IACpDC,MAAAA,CAAOC,IAAAA,CAAKV,OAAAA,CAAQW,EAAAA,CAAGC,QAAQ,CAAA,CAC5BC,MAAAA,CAAOC,CAAAA,GAAAA,KAAOd,OAAAA,CAAQW,EAAAA,CAAGC,QAAAA,CAASE,GAAAA,CAAAA,EAAMC,IAAAA,KAAS,SAAA,CAAA,CACjDC,QAAAA,CAASf,UAAAA,CAAAA;AAEhB;AAZgBF,wBAAAA,CAAAA,eAAAA,EAAAA,iBAAAA,CAAAA","file":"chunk-G4VBCQU2.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"../types/context\";\n\n/**\n * Determine if a module ID is a built-in Powerlines module ID.\n *\n * @param context - The Powerlines context.\n * @param moduleName - The name of the module to check.\n * @returns `true` if the module is a built-in module, otherwise `false`.\n */\nexport function isBuiltinModule(context: Context, moduleName: string): boolean {\n const prefix: string =\n context.config.output?.builtinPrefix ||\n context.config?.framework ||\n \"powerlines\";\n\n return (\n moduleName.startsWith(`${prefix.replace(/:$/, \"\")}:`) ||\n Object.keys(context.fs.metadata)\n .filter(key => context.fs.metadata[key]?.type === \"builtin\")\n .includes(moduleName)\n );\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __name } from './chunk-7QVYU63E.js';
|
|
2
|
+
|
|
3
|
+
// src/plugin-utils/modules.ts
|
|
4
|
+
function isBuiltinModule(context, moduleName) {
|
|
5
|
+
const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
|
|
6
|
+
return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
|
|
7
|
+
}
|
|
8
|
+
__name(isBuiltinModule, "isBuiltinModule");
|
|
9
|
+
|
|
10
|
+
export { isBuiltinModule };
|
|
11
|
+
//# sourceMappingURL=chunk-TKHJ5FOY.js.map
|
|
12
|
+
//# sourceMappingURL=chunk-TKHJ5FOY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/plugin-utils/modules.ts"],"names":["isBuiltinModule","context","moduleName","prefix","config","output","builtinPrefix","framework","startsWith","replace","Object","keys","fs","metadata","filter","key","type","includes"],"mappings":";;;AA2BO,SAASA,eAAAA,CAAgBC,SAAkBC,UAAAA,EAAkB;AAClE,EAAA,MAAMC,SACJF,OAAAA,CAAQG,MAAAA,CAAOC,QAAQC,aAAAA,IACvBL,OAAAA,CAAQG,QAAQG,SAAAA,IAChB,YAAA;AAEF,EAAA,OACEL,UAAAA,CAAWM,UAAAA,CAAW,CAAA,EAAGL,MAAAA,CAAOM,OAAAA,CAAQ,IAAA,EAAM,EAAA,CAAA,CAAA,CAAA,CAAM,CAAA,IACpDC,MAAAA,CAAOC,IAAAA,CAAKV,OAAAA,CAAQW,EAAAA,CAAGC,QAAQ,CAAA,CAC5BC,MAAAA,CAAOC,CAAAA,GAAAA,KAAOd,OAAAA,CAAQW,EAAAA,CAAGC,QAAAA,CAASE,GAAAA,CAAAA,EAAMC,IAAAA,KAAS,SAAA,CAAA,CACjDC,QAAAA,CAASf,UAAAA,CAAAA;AAEhB;AAZgBF,MAAAA,CAAAA,eAAAA,EAAAA,iBAAAA,CAAAA","file":"chunk-TKHJ5FOY.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"../types/context\";\n\n/**\n * Determine if a module ID is a built-in Powerlines module ID.\n *\n * @param context - The Powerlines context.\n * @param moduleName - The name of the module to check.\n * @returns `true` if the module is a built-in module, otherwise `false`.\n */\nexport function isBuiltinModule(context: Context, moduleName: string): boolean {\n const prefix: string =\n context.config.output?.builtinPrefix ||\n context.config?.framework ||\n \"powerlines\";\n\n return (\n moduleName.startsWith(`${prefix.replace(/:$/, \"\")}:`) ||\n Object.keys(context.fs.metadata)\n .filter(key => context.fs.metadata[key]?.type === \"builtin\")\n .includes(moduleName)\n );\n}\n"]}
|
|
@@ -2131,4 +2131,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
2131
2131
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
2132
2132
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
2133
2133
|
|
|
2134
|
-
export type { BuilderVariant as B, EnvironmentConfig as E, HookFields as H, PluginContext as P, ResolvedConfig as R, TypesResult as T, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPluginFactory as c, PartialPlugin as d, PluginConfigObject as e, PluginConfigTuple as f, PluginConfig as g, PluginHookObject as h, PluginHook as i, PluginHookFields as j, PluginHooksListItem as k, UnpluginBuilderVariant as l, UnpluginHooksListItem as m, PluginHooks as n, EnvironmentResolvedConfig as o, UnpluginOptions as p };
|
|
2134
|
+
export type { BuilderVariant as B, Context as C, EnvironmentConfig as E, HookFields as H, PluginContext as P, ResolvedConfig as R, TypesResult as T, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPluginFactory as c, PartialPlugin as d, PluginConfigObject as e, PluginConfigTuple as f, PluginConfig as g, PluginHookObject as h, PluginHook as i, PluginHookFields as j, PluginHooksListItem as k, UnpluginBuilderVariant as l, UnpluginHooksListItem as m, PluginHooks as n, EnvironmentResolvedConfig as o, UnpluginOptions as p };
|
|
@@ -2131,4 +2131,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
2131
2131
|
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
2132
2132
|
type WithUnpluginBuildContext<TContext extends PluginContext> = UnpluginBuildContext & TContext;
|
|
2133
2133
|
|
|
2134
|
-
export type { BuilderVariant as B, EnvironmentConfig as E, HookFields as H, PluginContext as P, ResolvedConfig as R, TypesResult as T, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPluginFactory as c, PartialPlugin as d, PluginConfigObject as e, PluginConfigTuple as f, PluginConfig as g, PluginHookObject as h, PluginHook as i, PluginHookFields as j, PluginHooksListItem as k, UnpluginBuilderVariant as l, UnpluginHooksListItem as m, PluginHooks as n, EnvironmentResolvedConfig as o, UnpluginOptions as p };
|
|
2134
|
+
export type { BuilderVariant as B, Context as C, EnvironmentConfig as E, HookFields as H, PluginContext as P, ResolvedConfig as R, TypesResult as T, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPluginFactory as c, PartialPlugin as d, PluginConfigObject as e, PluginConfigTuple as f, PluginConfig as g, PluginHookObject as h, PluginHook as i, PluginHookFields as j, PluginHooksListItem as k, UnpluginBuilderVariant as l, UnpluginHooksListItem as m, PluginHooks as n, EnvironmentResolvedConfig as o, UnpluginOptions as p };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuilderVariant, a as Plugin, b as PluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, B as BuilderVariant, a as Plugin, b as PluginFactory } from './context-ImhXCCVn.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, B as BuilderVariant, a as Plugin, b as PluginFactory } from './context-
|
|
1
|
+
import { P as PluginContext, B as BuilderVariant, a as Plugin, b as PluginFactory } from './context-ImhXCCVn.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, b as PluginFactory, c as PartialPluginFactory, d as PartialPlugin, a as Plugin } from './context-
|
|
1
|
+
import { P as PluginContext, b as PluginFactory, c as PartialPluginFactory, d as PartialPlugin, a as Plugin } from './context-ImhXCCVn.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, b as PluginFactory, c as PartialPluginFactory, d as PartialPlugin, a as Plugin } from './context-
|
|
1
|
+
import { P as PluginContext, b as PluginFactory, c as PartialPluginFactory, d as PartialPlugin, a as Plugin } from './context-ImhXCCVn.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, R as ResolvedConfig, a as Plugin, e as PluginConfigObject, f as PluginConfigTuple, g as PluginConfig, h as PluginHookObject, i as PluginHook, H as HookFields, j as PluginHookFields, k as PluginHooksListItem, l as UnpluginBuilderVariant, m as UnpluginHooksListItem, n as PluginHooks, U as UnresolvedContext, E as EnvironmentConfig, o as EnvironmentResolvedConfig, T as TypesResult, p as UnpluginOptions } from './context-
|
|
1
|
+
import { P as PluginContext, R as ResolvedConfig, a as Plugin, e as PluginConfigObject, f as PluginConfigTuple, g as PluginConfig, h as PluginHookObject, i as PluginHook, H as HookFields, j as PluginHookFields, k as PluginHooksListItem, l as UnpluginBuilderVariant, m as UnpluginHooksListItem, n as PluginHooks, U as UnresolvedContext, E as EnvironmentConfig, o as EnvironmentResolvedConfig, T as TypesResult, p as UnpluginOptions } from './context-ImhXCCVn.cjs';
|
|
2
2
|
import * as rollup from 'rollup';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, R as ResolvedConfig, a as Plugin, e as PluginConfigObject, f as PluginConfigTuple, g as PluginConfig, h as PluginHookObject, i as PluginHook, H as HookFields, j as PluginHookFields, k as PluginHooksListItem, l as UnpluginBuilderVariant, m as UnpluginHooksListItem, n as PluginHooks, U as UnresolvedContext, E as EnvironmentConfig, o as EnvironmentResolvedConfig, T as TypesResult, p as UnpluginOptions } from './context-
|
|
1
|
+
import { P as PluginContext, R as ResolvedConfig, a as Plugin, e as PluginConfigObject, f as PluginConfigTuple, g as PluginConfig, h as PluginHookObject, i as PluginHook, H as HookFields, j as PluginHookFields, k as PluginHooksListItem, l as UnpluginBuilderVariant, m as UnpluginHooksListItem, n as PluginHooks, U as UnresolvedContext, E as EnvironmentConfig, o as EnvironmentResolvedConfig, T as TypesResult, p as UnpluginOptions } from './context-ImhXCCVn.js';
|
|
2
2
|
import * as rollup from 'rollup';
|
|
3
3
|
import * as _stryke_types_base from '@stryke/types/base';
|
|
4
4
|
import { AnyFunction } from '@stryke/types/base';
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkRBMEE2JC_cjs = require('./chunk-RBMEE2JC.cjs');
|
|
3
4
|
var chunkDUIPLC7F_cjs = require('./chunk-DUIPLC7F.cjs');
|
|
4
5
|
var chunkARNNN4GS_cjs = require('./chunk-ARNNN4GS.cjs');
|
|
5
6
|
var chunk4FLR5DY5_cjs = require('./chunk-4FLR5DY5.cjs');
|
|
6
7
|
var chunkGH7PPING_cjs = require('./chunk-GH7PPING.cjs');
|
|
7
8
|
var chunk2I5L22QB_cjs = require('./chunk-2I5L22QB.cjs');
|
|
8
9
|
var chunk6YOLE5BT_cjs = require('./chunk-6YOLE5BT.cjs');
|
|
9
|
-
var
|
|
10
|
+
var chunkG4VBCQU2_cjs = require('./chunk-G4VBCQU2.cjs');
|
|
10
11
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
15
|
+
Object.defineProperty(exports, "replacePathTokens", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkRBMEE2JC_cjs.replacePathTokens; }
|
|
18
|
+
});
|
|
14
19
|
Object.defineProperty(exports, "getOrganizationName", {
|
|
15
20
|
enumerable: true,
|
|
16
21
|
get: function () { return chunkDUIPLC7F_cjs.getOrganizationName; }
|
|
@@ -95,9 +100,9 @@ Object.defineProperty(exports, "isUnpluginHookKey", {
|
|
|
95
100
|
enumerable: true,
|
|
96
101
|
get: function () { return chunk6YOLE5BT_cjs.isUnpluginHookKey; }
|
|
97
102
|
});
|
|
98
|
-
Object.defineProperty(exports, "
|
|
103
|
+
Object.defineProperty(exports, "isBuiltinModule", {
|
|
99
104
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkG4VBCQU2_cjs.isBuiltinModule; }
|
|
101
106
|
});
|
|
102
107
|
//# sourceMappingURL=index.cjs.map
|
|
103
108
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -4,8 +4,9 @@ export { extend } from './extend.cjs';
|
|
|
4
4
|
export { getConfigPath } from './get-config-path.cjs';
|
|
5
5
|
export { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './helpers.cjs';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.cjs';
|
|
7
|
+
export { isBuiltinModule } from './modules.cjs';
|
|
7
8
|
export { replacePathTokens } from './paths.cjs';
|
|
8
|
-
import './context-
|
|
9
|
+
import './context-ImhXCCVn.cjs';
|
|
9
10
|
import '@stryke/env/get-env-paths';
|
|
10
11
|
import '@stryke/http/fetch';
|
|
11
12
|
import '@stryke/types/base';
|
|
@@ -4,8 +4,9 @@ export { extend } from './extend.js';
|
|
|
4
4
|
export { getConfigPath } from './get-config-path.js';
|
|
5
5
|
export { GetHookHandlerReturnType, __ΩGetHookHandlerReturnType, addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './helpers.js';
|
|
6
6
|
export { MergeResult, __ΩMergeResult, merge } from './merge.js';
|
|
7
|
+
export { isBuiltinModule } from './modules.js';
|
|
7
8
|
export { replacePathTokens } from './paths.js';
|
|
8
|
-
import './context-
|
|
9
|
+
import './context-ImhXCCVn.js';
|
|
9
10
|
import '@stryke/env/get-env-paths';
|
|
10
11
|
import '@stryke/http/fetch';
|
|
11
12
|
import '@stryke/types/base';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export { replacePathTokens } from './chunk-NRJ5QYX2.js';
|
|
1
2
|
export { getOrganizationName, getWorkspaceName } from './chunk-G32M72GJ.js';
|
|
2
3
|
export { enforceBuild } from './chunk-Z2BYI6KW.js';
|
|
3
4
|
export { extend } from './chunk-RZAQTG45.js';
|
|
4
5
|
export { getConfigPath } from './chunk-H7GJUBNY.js';
|
|
5
6
|
export { merge } from './chunk-XDURJUGS.js';
|
|
6
7
|
export { addPluginHook, checkDedupe, extractPluginHook, findInvalidPluginConfig, getHookHandler, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook, isPluginHookField, isPluginHookFunction, isPluginHookObject, isUnpluginHookField, isUnpluginHookKey } from './chunk-I3FSMSLD.js';
|
|
7
|
-
export {
|
|
8
|
+
export { isBuiltinModule } from './chunk-TKHJ5FOY.js';
|
|
8
9
|
import './chunk-7QVYU63E.js';
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-ImhXCCVn.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-
|
|
1
|
+
import { P as PluginContext, a as Plugin, d as PartialPlugin } from './context-ImhXCCVn.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/http/fetch';
|
|
4
4
|
import '@stryke/types/base';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkG4VBCQU2_cjs = require('./chunk-G4VBCQU2.cjs');
|
|
4
|
+
require('./chunk-PK6SKIKE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "isBuiltinModule", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkG4VBCQU2_cjs.isBuiltinModule; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=modules.cjs.map
|
|
13
|
+
//# sourceMappingURL=modules.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"modules.cjs"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { C as Context } from './context-ImhXCCVn.cjs';
|
|
2
|
+
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
4
|
+
import '@stryke/types/base';
|
|
5
|
+
import '@stryke/types/package-json';
|
|
6
|
+
import 'jiti';
|
|
7
|
+
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
9
|
+
import 'semver';
|
|
10
|
+
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
12
|
+
import 'unplugin';
|
|
13
|
+
import '@storm-software/build-tools/types';
|
|
14
|
+
import '@storm-software/config-tools/types';
|
|
15
|
+
import '@storm-software/config/types';
|
|
16
|
+
import '@stryke/types/configuration';
|
|
17
|
+
import '@stryke/types/file';
|
|
18
|
+
import 'compatx';
|
|
19
|
+
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
29
|
+
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
31
|
+
import '@stryke/types/tsconfig';
|
|
32
|
+
import 'typescript';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Determine if a module ID is a built-in Powerlines module ID.
|
|
36
|
+
*
|
|
37
|
+
* @param context - The Powerlines context.
|
|
38
|
+
* @param moduleName - The name of the module to check.
|
|
39
|
+
* @returns `true` if the module is a built-in module, otherwise `false`.
|
|
40
|
+
*/
|
|
41
|
+
declare function isBuiltinModule(context: Context, moduleName: string): boolean;
|
|
42
|
+
|
|
43
|
+
export { isBuiltinModule };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { C as Context } from './context-ImhXCCVn.js';
|
|
2
|
+
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
4
|
+
import '@stryke/types/base';
|
|
5
|
+
import '@stryke/types/package-json';
|
|
6
|
+
import 'jiti';
|
|
7
|
+
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
9
|
+
import 'semver';
|
|
10
|
+
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
12
|
+
import 'unplugin';
|
|
13
|
+
import '@storm-software/build-tools/types';
|
|
14
|
+
import '@storm-software/config-tools/types';
|
|
15
|
+
import '@storm-software/config/types';
|
|
16
|
+
import '@stryke/types/configuration';
|
|
17
|
+
import '@stryke/types/file';
|
|
18
|
+
import 'compatx';
|
|
19
|
+
import 'vite';
|
|
20
|
+
import '@farmfe/core';
|
|
21
|
+
import '@rspack/core';
|
|
22
|
+
import '@storm-software/tsup/types';
|
|
23
|
+
import '@storm-software/unbuild/types';
|
|
24
|
+
import 'esbuild';
|
|
25
|
+
import 'rolldown';
|
|
26
|
+
import 'rollup';
|
|
27
|
+
import 'tsdown';
|
|
28
|
+
import 'webpack';
|
|
29
|
+
import '@stryke/fs/resolve';
|
|
30
|
+
import '@stryke/types/array';
|
|
31
|
+
import '@stryke/types/tsconfig';
|
|
32
|
+
import 'typescript';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Determine if a module ID is a built-in Powerlines module ID.
|
|
36
|
+
*
|
|
37
|
+
* @param context - The Powerlines context.
|
|
38
|
+
* @param moduleName - The name of the module to check.
|
|
39
|
+
* @returns `true` if the module is a built-in module, otherwise `false`.
|
|
40
|
+
*/
|
|
41
|
+
declare function isBuiltinModule(context: Context, moduleName: string): boolean;
|
|
42
|
+
|
|
43
|
+
export { isBuiltinModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"modules.js"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-ImhXCCVn.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/package-json';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsUndefined } from '@stryke/types/base';
|
|
2
|
-
import { U as UnresolvedContext } from './context-
|
|
2
|
+
import { U as UnresolvedContext } from './context-ImhXCCVn.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/http/fetch';
|
|
5
5
|
import '@stryke/types/package-json';
|
package/dist/rolldown.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunk5CHXFWBK_cjs = require('./chunk-5CHXFWBK.cjs');
|
|
6
|
+
require('./chunk-7L2E5YIM.cjs');
|
|
7
|
+
require('./chunk-6GAEDFN4.cjs');
|
|
8
8
|
require('./chunk-B6DVCLP5.cjs');
|
|
9
9
|
require('./chunk-V5WOGN7O.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -14,15 +14,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "default", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5CHXFWBK_cjs.rolldown_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "module.exports", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk5CHXFWBK_cjs.rolldown; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "rolldown", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk5CHXFWBK_cjs.rolldown; }
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=rolldown.cjs.map
|
|
28
28
|
//# sourceMappingURL=rolldown.cjs.map
|
package/dist/rolldown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { rolldown_default as default, rolldown as "module.exports", rolldown } from './chunk-63NHSIGB.js';
|
|
2
|
+
import './chunk-UID2OOSN.js';
|
|
3
|
+
import './chunk-O5MRNC4W.js';
|
|
4
4
|
import './chunk-PQXP7XQK.js';
|
|
5
5
|
import './chunk-NITQ5IYP.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
package/dist/rollup.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 rollup = unplugin.createRollupPlugin(
|
|
13
|
+
var rollup = unplugin.createRollupPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("rollup"));
|
|
14
14
|
var rollup_default = rollup;
|
|
15
15
|
|
|
16
16
|
exports.default = rollup_default;
|
package/dist/rollup.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/rspack.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 rspack = unplugin.createRspackPlugin(
|
|
13
|
+
var rspack = unplugin.createRspackPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("rspack"));
|
|
14
14
|
var rspack_default = rspack;
|
|
15
15
|
|
|
16
16
|
exports.default = rspack_default;
|
package/dist/rspack.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/tsdown.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
5
|
+
var chunk5CHXFWBK_cjs = require('./chunk-5CHXFWBK.cjs');
|
|
6
|
+
require('./chunk-7L2E5YIM.cjs');
|
|
7
|
+
require('./chunk-6GAEDFN4.cjs');
|
|
8
8
|
require('./chunk-B6DVCLP5.cjs');
|
|
9
9
|
require('./chunk-V5WOGN7O.cjs');
|
|
10
10
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -42,7 +42,7 @@ function tsdown(options = {}) {
|
|
|
42
42
|
...options,
|
|
43
43
|
entry: options.entry,
|
|
44
44
|
plugins: [
|
|
45
|
-
|
|
45
|
+
chunk5CHXFWBK_cjs.rolldown_default({
|
|
46
46
|
name: options.name,
|
|
47
47
|
root: options.cwd,
|
|
48
48
|
output: {
|
package/dist/tsdown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { rolldown_default } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { rolldown_default } from './chunk-63NHSIGB.js';
|
|
2
|
+
import './chunk-UID2OOSN.js';
|
|
3
|
+
import './chunk-O5MRNC4W.js';
|
|
4
4
|
import './chunk-PQXP7XQK.js';
|
|
5
5
|
import './chunk-NITQ5IYP.js';
|
|
6
6
|
import './chunk-2MYPFASJ.js';
|
package/dist/tsup.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');
|
|
@@ -16,7 +16,7 @@ function tsup(options = {}) {
|
|
|
16
16
|
return {
|
|
17
17
|
...options,
|
|
18
18
|
esbuildPlugins: [
|
|
19
|
-
|
|
19
|
+
chunkF3EMUOG6_cjs.esbuild_default({
|
|
20
20
|
output: {
|
|
21
21
|
outputPath: options.outDir,
|
|
22
22
|
format: options.format
|
package/dist/tsup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { esbuild_default } from './chunk-
|
|
1
|
+
import { esbuild_default } 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/unloader.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 unloader = unplugin.createUnloaderPlugin(
|
|
13
|
+
var unloader = unplugin.createUnloaderPlugin(chunk7L2E5YIM_cjs.createUnpluginFactory("unloader"));
|
|
14
14
|
var unloader_default = unloader;
|
|
15
15
|
|
|
16
16
|
exports.default = unloader_default;
|
package/dist/unloader.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/unplugin.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk7L2E5YIM_cjs = require('./chunk-7L2E5YIM.cjs');
|
|
4
|
+
var chunk6GAEDFN4_cjs = require('./chunk-6GAEDFN4.cjs');
|
|
5
5
|
require('./chunk-B6DVCLP5.cjs');
|
|
6
6
|
require('./chunk-V5WOGN7O.cjs');
|
|
7
7
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -16,7 +16,7 @@ function createUnplugin(context) {
|
|
|
16
16
|
const ctx = context;
|
|
17
17
|
unplugin.setParseImpl(ctx.parse);
|
|
18
18
|
return () => {
|
|
19
|
-
const log =
|
|
19
|
+
const log = chunk6GAEDFN4_cjs.extendLog(ctx.log, "unplugin");
|
|
20
20
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
21
21
|
try {
|
|
22
22
|
async function buildStart() {
|
|
@@ -105,8 +105,8 @@ export * from "${isString.isString(resolved) ? resolved : resolved.id}";
|
|
|
105
105
|
async function transform(code, id) {
|
|
106
106
|
let transformed = code;
|
|
107
107
|
for (const hook of ctx.$$internal.environment.selectHooks("transform")) {
|
|
108
|
-
const result = await hook.handler.apply(
|
|
109
|
-
|
|
108
|
+
const result = await hook.handler.apply(chunk6GAEDFN4_cjs.combineContexts(ctx, this), [
|
|
109
|
+
chunk7L2E5YIM_cjs.getString(transformed),
|
|
110
110
|
id
|
|
111
111
|
]);
|
|
112
112
|
if (result) {
|
|
@@ -171,15 +171,15 @@ chunkPK6SKIKE_cjs.__name(createUnplugin, "createUnplugin");
|
|
|
171
171
|
|
|
172
172
|
Object.defineProperty(exports, "createUnpluginFactory", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk7L2E5YIM_cjs.createUnpluginFactory; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "combineContexts", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk6GAEDFN4_cjs.combineContexts; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "isUnpluginBuilderVariant", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk6GAEDFN4_cjs.isUnpluginBuilderVariant; }
|
|
183
183
|
});
|
|
184
184
|
exports.createUnplugin = createUnplugin;
|
|
185
185
|
//# sourceMappingURL=unplugin.cjs.map
|
package/dist/unplugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getString } from './chunk-
|
|
2
|
-
export { createUnpluginFactory } from './chunk-
|
|
3
|
-
import { extendLog, combineContexts } from './chunk-
|
|
4
|
-
export { combineContexts, isUnpluginBuilderVariant } from './chunk-
|
|
1
|
+
import { getString } from './chunk-UID2OOSN.js';
|
|
2
|
+
export { createUnpluginFactory } from './chunk-UID2OOSN.js';
|
|
3
|
+
import { extendLog, combineContexts } from './chunk-O5MRNC4W.js';
|
|
4
|
+
export { combineContexts, isUnpluginBuilderVariant } from './chunk-O5MRNC4W.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|