powerlines 0.41.6 → 0.41.7
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/README.md +14 -16
- package/dist/{api-CY668wMZ.mjs → api-6f2oVwGy.mjs} +142 -333
- package/dist/api-6f2oVwGy.mjs.map +1 -0
- package/dist/{api-GPlMYw0d.cjs → api-CFXLaAxU.cjs} +505 -722
- package/dist/astro.cjs +8 -18
- package/dist/astro.d.cts +1 -2
- package/dist/astro.d.cts.map +1 -1
- package/dist/astro.d.mts +1 -6
- package/dist/astro.d.mts.map +1 -1
- package/dist/astro.mjs +6 -16
- package/dist/astro.mjs.map +1 -1
- package/dist/{chunk-CbDLau6x.cjs → chunk-AIJqnxB6.cjs} +27 -1
- package/dist/chunk-CtajNgzt.mjs +36 -0
- package/dist/config.cjs +20 -4
- package/dist/config.d.cts +1 -2
- package/dist/config.d.mts +1 -3
- package/dist/config.mjs +11 -2
- package/dist/config.mjs.map +1 -0
- package/dist/constants.cjs +20 -20
- package/dist/constants.d.cts +1 -24
- package/dist/constants.d.mts +1 -24
- package/dist/constants.mjs +11 -3
- package/dist/constants.mjs.map +1 -0
- package/dist/context/index.cjs +4 -9
- package/dist/context/index.d.cts +56 -132
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +55 -135
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +3 -9
- package/dist/esbuild.cjs +60 -17
- package/dist/esbuild.d.cts +5 -29
- package/dist/esbuild.d.cts.map +1 -1
- package/dist/esbuild.d.mts +5 -33
- package/dist/esbuild.d.mts.map +1 -1
- package/dist/esbuild.mjs +44 -12
- package/dist/esbuild.mjs.map +1 -0
- package/dist/farm.cjs +6 -13
- package/dist/farm.d.cts +2 -3
- package/dist/farm.d.cts.map +1 -1
- package/dist/farm.d.mts +2 -6
- package/dist/farm.d.mts.map +1 -1
- package/dist/farm.mjs +4 -11
- package/dist/farm.mjs.map +1 -1
- package/dist/index.cjs +7 -13
- package/dist/index.d.cts +263 -6
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +263 -7
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -9
- package/dist/index.mjs.map +1 -1
- package/dist/next.cjs +7 -14
- package/dist/next.d.cts +0 -1
- package/dist/next.d.cts.map +1 -1
- package/dist/next.d.mts +0 -1
- package/dist/next.d.mts.map +1 -1
- package/dist/next.mjs +6 -13
- package/dist/next.mjs.map +1 -1
- package/dist/nuxt.cjs +12 -22
- package/dist/nuxt.d.cts +2 -3
- package/dist/nuxt.d.cts.map +1 -1
- package/dist/nuxt.d.mts +2 -7
- package/dist/nuxt.d.mts.map +1 -1
- package/dist/nuxt.mjs +8 -18
- package/dist/nuxt.mjs.map +1 -1
- package/dist/plugin-utils.cjs +20 -28
- package/dist/plugin-utils.d.cts +1 -267
- package/dist/plugin-utils.d.mts +1 -272
- package/dist/plugin-utils.mjs +11 -4
- package/dist/plugin-utils.mjs.map +1 -0
- package/dist/rolldown.cjs +52 -18
- package/dist/rolldown.d.cts +5 -29
- package/dist/rolldown.d.cts.map +1 -1
- package/dist/rolldown.d.mts +5 -32
- package/dist/rolldown.d.mts.map +1 -1
- package/dist/rolldown.mjs +36 -13
- package/dist/rolldown.mjs.map +1 -0
- package/dist/rollup.cjs +20 -48
- package/dist/rollup.d.cts +5 -29
- package/dist/rollup.d.cts.map +1 -1
- package/dist/rollup.d.mts +5 -32
- package/dist/rollup.d.mts.map +1 -1
- package/dist/rollup.mjs +6 -44
- package/dist/rollup.mjs.map +1 -1
- package/dist/rspack.cjs +20 -82
- package/dist/rspack.d.cts +4 -24
- package/dist/rspack.d.cts.map +1 -1
- package/dist/rspack.d.mts +4 -27
- package/dist/rspack.d.mts.map +1 -1
- package/dist/rspack.mjs +5 -77
- package/dist/rspack.mjs.map +1 -1
- package/dist/storage/index.cjs +2 -3
- package/dist/storage/index.d.cts +7 -7
- package/dist/storage/index.d.cts.map +1 -1
- package/dist/storage/index.d.mts +7 -11
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +1 -3
- package/dist/{tsconfig-C8M8X6U0.cjs → tsconfig-BJrUrPC_.cjs} +13 -13
- package/dist/{tsconfig-B92heKit.mjs → tsconfig-D9GCB2I9.mjs} +5 -5
- package/dist/tsconfig-D9GCB2I9.mjs.map +1 -0
- package/dist/tsdown.cjs +38 -187
- package/dist/tsdown.d.cts +2 -24
- package/dist/tsdown.d.cts.map +1 -1
- package/dist/tsdown.d.mts +4 -30
- package/dist/tsdown.d.mts.map +1 -1
- package/dist/tsdown.mjs +8 -167
- package/dist/tsdown.mjs.map +1 -1
- package/dist/tsup.cjs +29 -134
- package/dist/tsup.d.cts +2 -24
- package/dist/tsup.d.cts.map +1 -1
- package/dist/tsup.d.mts +2 -28
- package/dist/tsup.d.mts.map +1 -1
- package/dist/tsup.mjs +7 -122
- package/dist/tsup.mjs.map +1 -1
- package/dist/types-DerAvFjs.d.cts +4 -0
- package/dist/types-DerAvFjs.d.cts.map +1 -0
- package/dist/types-ro7jWCtL.d.mts +4 -0
- package/dist/types-ro7jWCtL.d.mts.map +1 -0
- package/dist/typescript/index.cjs +2 -1
- package/dist/typescript/index.d.cts +2 -2
- package/dist/typescript/index.d.cts.map +1 -1
- package/dist/typescript/index.d.mts +1 -4
- package/dist/typescript/index.d.mts.map +1 -1
- package/dist/typescript/index.mjs +1 -1
- package/dist/unloader.cjs +6 -13
- package/dist/unloader.d.cts +2 -4
- package/dist/unloader.d.cts.map +1 -1
- package/dist/unloader.d.mts +2 -7
- package/dist/unloader.d.mts.map +1 -1
- package/dist/unloader.mjs +4 -11
- package/dist/unloader.mjs.map +1 -1
- package/dist/unplugin.cjs +11 -14
- package/dist/unplugin.d.cts +5 -6
- package/dist/unplugin.d.cts.map +1 -1
- package/dist/unplugin.d.mts +3 -6
- package/dist/unplugin.d.mts.map +1 -1
- package/dist/unplugin.mjs +6 -10
- package/dist/utils.cjs +38 -22
- package/dist/utils.d.cts +3 -2
- package/dist/utils.d.mts +3 -3
- package/dist/utils.mjs +19 -3
- package/dist/utils.mjs.map +1 -0
- package/dist/{virtual-B1MLgqnQ.cjs → virtual-Cbvj12lU.cjs} +33 -33
- package/dist/{virtual-B9imjOqe.mjs → virtual-DvkJm7gK.mjs} +7 -7
- package/dist/virtual-DvkJm7gK.mjs.map +1 -0
- package/dist/vite.cjs +84 -19
- package/dist/vite.d.cts +5 -16
- package/dist/vite.d.cts.map +1 -1
- package/dist/vite.d.mts +5 -19
- package/dist/vite.d.mts.map +1 -1
- package/dist/vite.mjs +67 -14
- package/dist/vite.mjs.map +1 -0
- package/dist/webpack.cjs +42 -16
- package/dist/webpack.d.cts +5 -29
- package/dist/webpack.d.cts.map +1 -1
- package/dist/webpack.d.mts +5 -32
- package/dist/webpack.d.mts.map +1 -1
- package/dist/webpack.mjs +26 -11
- package/dist/webpack.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/api-CY668wMZ.mjs.map +0 -1
- package/dist/commands-7TWNqTU1.d.cts +0 -12
- package/dist/commands-7TWNqTU1.d.cts.map +0 -1
- package/dist/commands-yacLkOi0.d.mts +0 -12
- package/dist/commands-yacLkOi0.d.mts.map +0 -1
- package/dist/config-CK756s0L.d.mts +0 -2232
- package/dist/config-CK756s0L.d.mts.map +0 -1
- package/dist/config-CiPXgwzt.d.mts +0 -39
- package/dist/config-CiPXgwzt.d.mts.map +0 -1
- package/dist/config-D4Fh2gQL.mjs +0 -87
- package/dist/config-D4Fh2gQL.mjs.map +0 -1
- package/dist/config-D86Vw7SC.cjs +0 -105
- package/dist/config-J74ORCFY.d.cts +0 -39
- package/dist/config-J74ORCFY.d.cts.map +0 -1
- package/dist/config-vnrrSxEB.d.cts +0 -2232
- package/dist/config-vnrrSxEB.d.cts.map +0 -1
- package/dist/constants-CZh5rsgh.cjs +0 -103
- package/dist/constants-cXxSHhNp.mjs +0 -32
- package/dist/constants-cXxSHhNp.mjs.map +0 -1
- package/dist/constants.d.cts.map +0 -1
- package/dist/constants.d.mts.map +0 -1
- package/dist/esbuild-B3NuCco0.cjs +0 -100
- package/dist/esbuild-DWiE0pYc.mjs +0 -82
- package/dist/esbuild-DWiE0pYc.mjs.map +0 -1
- package/dist/index-2JXW-b2-.d.mts +0 -82
- package/dist/index-2JXW-b2-.d.mts.map +0 -1
- package/dist/index-6BLROVtJ.d.mts +0 -261
- package/dist/index-6BLROVtJ.d.mts.map +0 -1
- package/dist/index-C7W0kmm7.d.mts +0 -171
- package/dist/index-C7W0kmm7.d.mts.map +0 -1
- package/dist/index-DJ-k0GOX.d.cts +0 -261
- package/dist/index-DJ-k0GOX.d.cts.map +0 -1
- package/dist/paths-CS8ecCnW.mjs +0 -81
- package/dist/paths-CS8ecCnW.mjs.map +0 -1
- package/dist/paths-YmyIGEVo.cjs +0 -98
- package/dist/plugin-B9TQt-p0.d.cts +0 -82
- package/dist/plugin-B9TQt-p0.d.cts.map +0 -1
- package/dist/plugin-BE3wmhoU.d.cts +0 -26
- package/dist/plugin-BE3wmhoU.d.cts.map +0 -1
- package/dist/plugin-CZ_PJPpQ.cjs +0 -96
- package/dist/plugin-C_8RhG5V.d.mts +0 -26
- package/dist/plugin-C_8RhG5V.d.mts.map +0 -1
- package/dist/plugin-E5foRD0k.mjs +0 -61
- package/dist/plugin-E5foRD0k.mjs.map +0 -1
- package/dist/plugin-utils-C3HnZJl1.mjs +0 -387
- package/dist/plugin-utils-C3HnZJl1.mjs.map +0 -1
- package/dist/plugin-utils-Ck3cx3w6.cjs +0 -531
- package/dist/plugin-utils.d.cts.map +0 -1
- package/dist/plugin-utils.d.mts.map +0 -1
- package/dist/resolve-options-6sXFqzEA.mjs +0 -116
- package/dist/resolve-options-6sXFqzEA.mjs.map +0 -1
- package/dist/resolve-options-BQnTgg3V.cjs +0 -105
- package/dist/resolve-options-D-RGs8j8.mjs +0 -117
- package/dist/resolve-options-D-RGs8j8.mjs.map +0 -1
- package/dist/resolve-options-DHL3RM8F.mjs +0 -87
- package/dist/resolve-options-DHL3RM8F.mjs.map +0 -1
- package/dist/resolve-options-lxQ2pm0W.cjs +0 -127
- package/dist/resolve-options-vyFhhkLp.cjs +0 -133
- package/dist/rolldown-CQI8ps6f.cjs +0 -83
- package/dist/rolldown-DsXEFXyP.mjs +0 -65
- package/dist/rolldown-DsXEFXyP.mjs.map +0 -1
- package/dist/tsconfig-B92heKit.mjs.map +0 -1
- package/dist/types-Bh_vLuQ0.d.mts +0 -1
- package/dist/utils-BbDma_5Y.cjs +0 -449
- package/dist/utils-DoQcX7Sk.mjs +0 -339
- package/dist/utils-DoQcX7Sk.mjs.map +0 -1
- package/dist/virtual-B9imjOqe.mjs.map +0 -1
- package/dist/vite-Bx1gbbj3.mjs +0 -171
- package/dist/vite-Bx1gbbj3.mjs.map +0 -1
- package/dist/vite-XV170zx6.cjs +0 -189
- package/dist/webpack-9G4xJBfz.cjs +0 -107
- package/dist/webpack-BkTkELre.mjs +0 -88
- package/dist/webpack-BkTkELre.mjs.map +0 -1
- package/dist/write-file-CpNWY8SV.d.cts +0 -171
- package/dist/write-file-CpNWY8SV.d.cts.map +0 -1
package/dist/webpack.cjs
CHANGED
|
@@ -1,17 +1,43 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
require('./
|
|
3
|
-
require('./
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
6
|
-
require(
|
|
7
|
-
require(
|
|
8
|
-
|
|
9
|
-
require('./utils-BbDma_5Y.cjs');
|
|
10
|
-
require('./virtual-B1MLgqnQ.cjs');
|
|
11
|
-
const require_webpack = require('./webpack-9G4xJBfz.cjs');
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_chunk = require('./chunk-AIJqnxB6.cjs');
|
|
3
|
+
const require_api = require('./api-CFXLaAxU.cjs');
|
|
4
|
+
require('./tsconfig-BJrUrPC_.cjs');
|
|
5
|
+
require('./virtual-Cbvj12lU.cjs');
|
|
6
|
+
let unplugin = require("unplugin");
|
|
7
|
+
let _powerlines_plugin_webpack = require("@powerlines/plugin-webpack");
|
|
8
|
+
_powerlines_plugin_webpack = require_chunk.__toESM(_powerlines_plugin_webpack);
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
//#region src/webpack.ts
|
|
11
|
+
/**
|
|
12
|
+
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
13
|
+
*
|
|
14
|
+
* @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```js
|
|
18
|
+
* // webpack.config.js
|
|
19
|
+
* import powerlines from "powerlines/webpack";
|
|
20
|
+
*
|
|
21
|
+
* export default {
|
|
22
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
const unplugin$1 = (0, unplugin.createWebpackPlugin)(require_api.createUnpluginFactory("webpack"));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.default = unplugin$1;
|
|
30
|
+
exports["module.exports"] = unplugin$1;
|
|
31
|
+
exports.unplugin = unplugin$1;
|
|
32
|
+
Object.defineProperty(exports, 'plugin', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _powerlines_plugin_webpack.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, 'webpack', {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _powerlines_plugin_webpack.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import * as webpack$1 from "webpack";
|
|
2
|
+
import { WebpackPluginUserConfig } from "@powerlines/plugin-webpack/types/plugin";
|
|
3
|
+
import plugin, { default as webpack } from "@powerlines/plugin-webpack";
|
|
4
4
|
|
|
5
|
-
//#region ../plugin-webpack/src/types/build.d.ts
|
|
6
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region ../plugin-webpack/src/types/plugin.d.ts
|
|
9
|
-
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
10
|
-
interface WebpackPluginUserConfig extends UserConfig {
|
|
11
|
-
webpack?: WebpackPluginOptions;
|
|
12
|
-
}
|
|
13
|
-
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
14
|
-
webpack: WebpackOptions;
|
|
15
|
-
}
|
|
16
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../plugin-webpack/src/index.d.ts
|
|
19
|
-
declare module "@powerlines/core" {
|
|
20
|
-
interface Config {
|
|
21
|
-
webpack?: WebpackPluginOptions;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
26
|
-
*/
|
|
27
|
-
declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
|
|
28
|
-
//#endregion
|
|
29
5
|
//#region src/webpack.d.ts
|
|
30
6
|
/**
|
|
31
7
|
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
@@ -42,7 +18,7 @@ declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginCont
|
|
|
42
18
|
* }
|
|
43
19
|
* ```
|
|
44
20
|
*/
|
|
45
|
-
declare const unplugin: (options: Partial<WebpackPluginUserConfig>) =>
|
|
21
|
+
declare const unplugin: (options: Partial<WebpackPluginUserConfig>) => webpack$1.WebpackPluginInstance;
|
|
46
22
|
//#endregion
|
|
47
|
-
export { unplugin as default, unplugin as "module.exports", unplugin, plugin,
|
|
23
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, plugin, webpack };
|
|
48
24
|
//# sourceMappingURL=webpack.d.cts.map
|
package/dist/webpack.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.cts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"webpack.d.cts","names":[],"sources":["../src/webpack.ts"],"mappings":";;;;;;;;AA0CA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,OAAA,CAAA,uBAAA,MAAA,SAAA,CAAA,qBAAA"}
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "./index-2JXW-b2-.mjs";
|
|
5
|
-
import * as webpack0 from "webpack";
|
|
6
|
-
import { Configuration } from "webpack";
|
|
1
|
+
import plugin, { default as webpack } from "@powerlines/plugin-webpack";
|
|
2
|
+
import * as webpack$1 from "webpack";
|
|
3
|
+
import { WebpackPluginUserConfig } from "@powerlines/plugin-webpack/types/plugin";
|
|
7
4
|
|
|
8
|
-
//#region ../plugin-webpack/src/types/build.d.ts
|
|
9
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region ../plugin-webpack/src/types/plugin.d.ts
|
|
12
|
-
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
13
|
-
interface WebpackPluginUserConfig extends UserConfig {
|
|
14
|
-
webpack?: WebpackPluginOptions;
|
|
15
|
-
}
|
|
16
|
-
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
17
|
-
webpack: WebpackOptions;
|
|
18
|
-
}
|
|
19
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region ../plugin-webpack/src/index.d.ts
|
|
22
|
-
declare module "@powerlines/core" {
|
|
23
|
-
interface Config {
|
|
24
|
-
webpack?: WebpackPluginOptions;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
29
|
-
*/
|
|
30
|
-
declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginContext>(options?: WebpackPluginOptions) => Plugin<TContext>;
|
|
31
|
-
//#endregion
|
|
32
5
|
//#region src/webpack.d.ts
|
|
33
6
|
/**
|
|
34
7
|
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
@@ -45,7 +18,7 @@ declare const plugin: <TContext extends WebpackPluginContext = WebpackPluginCont
|
|
|
45
18
|
* }
|
|
46
19
|
* ```
|
|
47
20
|
*/
|
|
48
|
-
declare const unplugin: (options: Partial<WebpackPluginUserConfig>) =>
|
|
21
|
+
declare const unplugin: (options: Partial<WebpackPluginUserConfig>) => webpack$1.WebpackPluginInstance;
|
|
49
22
|
//#endregion
|
|
50
|
-
export { unplugin as default, unplugin as "module.exports", unplugin, plugin,
|
|
23
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, plugin, webpack };
|
|
51
24
|
//# sourceMappingURL=webpack.d.mts.map
|
package/dist/webpack.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.d.mts","names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"webpack.d.mts","names":[],"sources":["../src/webpack.ts"],"mappings":";;;;;;;;AA0CA;;;;;;;;;;;;cAAa,QAAA,GAAQ,OAAA,EAAA,OAAA,CAAA,uBAAA,MAAA,SAAA,CAAA,qBAAA"}
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./tsconfig-
|
|
3
|
-
import "./
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "./constants-cXxSHhNp.mjs";
|
|
7
|
-
import "./config-D4Fh2gQL.mjs";
|
|
8
|
-
import "./utils-DoQcX7Sk.mjs";
|
|
9
|
-
import "./virtual-B9imjOqe.mjs";
|
|
10
|
-
import { n as webpack_default, r as src_default, t as unplugin } from "./webpack-BkTkELre.mjs";
|
|
1
|
+
import { a as createUnpluginFactory } from "./api-6f2oVwGy.mjs";
|
|
2
|
+
import "./tsconfig-D9GCB2I9.mjs";
|
|
3
|
+
import "./virtual-DvkJm7gK.mjs";
|
|
4
|
+
import { createWebpackPlugin } from "unplugin";
|
|
5
|
+
import plugin, { default as webpack } from "@powerlines/plugin-webpack";
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
//#region src/webpack.ts
|
|
8
|
+
/**
|
|
9
|
+
* An Webpack plugin that will invoke the Powerlines API hooks during the build process.
|
|
10
|
+
*
|
|
11
|
+
* @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```js
|
|
15
|
+
* // webpack.config.js
|
|
16
|
+
* import powerlines from "powerlines/webpack";
|
|
17
|
+
*
|
|
18
|
+
* export default {
|
|
19
|
+
* plugins: [powerlines({ name: "example-app", ... })],
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
const unplugin = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { unplugin as default, unplugin as "module.exports", unplugin, plugin, webpack };
|
|
27
|
+
//# sourceMappingURL=webpack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.mjs","names":[],"sources":["../src/webpack.ts"],"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 { WebpackPluginUserConfig } from \"@powerlines/plugin-webpack/types/plugin\";\nimport { createWebpackPlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport {\n default as plugin,\n default as webpack\n} from \"@powerlines/plugin-webpack\";\n\n/**\n * An Webpack plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture\n *\n * @example\n * ```js\n * // webpack.config.js\n * import powerlines from \"powerlines/webpack\";\n *\n * export default {\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * }\n * ```\n */\nexport const unplugin = createWebpackPlugin<Partial<WebpackPluginUserConfig>>(\n createUnpluginFactory(\"webpack\")\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAa,WAAW,oBACtB,sBAAsB,UAAU,CACjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"keywords": [
|
|
@@ -341,9 +341,9 @@
|
|
|
341
341
|
"dependencies": {
|
|
342
342
|
"@cacheable/memory": "^2.0.8",
|
|
343
343
|
"@donedeal0/superdiff": "^3.2.0",
|
|
344
|
-
"@powerlines/core": "^0.2.
|
|
344
|
+
"@powerlines/core": "^0.2.23",
|
|
345
345
|
"@storm-software/config": "^1.135.29",
|
|
346
|
-
"@storm-software/config-tools": "
|
|
346
|
+
"@storm-software/config-tools": "1.189.28",
|
|
347
347
|
"@stryke/capnp": "^0.12.83",
|
|
348
348
|
"@stryke/convert": "^0.6.53",
|
|
349
349
|
"@stryke/env": "^0.20.74",
|
|
@@ -370,23 +370,23 @@
|
|
|
370
370
|
"unplugin": "^3.0.0"
|
|
371
371
|
},
|
|
372
372
|
"devDependencies": {
|
|
373
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
374
|
-
"@powerlines/plugin-rolldown": "^0.7.
|
|
375
|
-
"@powerlines/plugin-rollup": "^0.7.
|
|
376
|
-
"@powerlines/plugin-rspack": "^0.5.
|
|
377
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
378
|
-
"@powerlines/plugin-tsup": "^0.12.
|
|
379
|
-
"@powerlines/plugin-unbuild": "^0.5.
|
|
380
|
-
"@powerlines/plugin-vite": "^0.14.
|
|
381
|
-
"@powerlines/plugin-webpack": "^0.5.
|
|
373
|
+
"@powerlines/plugin-esbuild": "^0.13.346",
|
|
374
|
+
"@powerlines/plugin-rolldown": "^0.7.347",
|
|
375
|
+
"@powerlines/plugin-rollup": "^0.7.346",
|
|
376
|
+
"@powerlines/plugin-rspack": "^0.5.345",
|
|
377
|
+
"@powerlines/plugin-tsdown": "^0.1.290",
|
|
378
|
+
"@powerlines/plugin-tsup": "^0.12.347",
|
|
379
|
+
"@powerlines/plugin-unbuild": "^0.5.346",
|
|
380
|
+
"@powerlines/plugin-vite": "^0.14.340",
|
|
381
|
+
"@powerlines/plugin-webpack": "^0.5.345",
|
|
382
382
|
"@storm-software/testing-tools": "^1.119.103",
|
|
383
383
|
"@stryke/types": "^0.10.52",
|
|
384
384
|
"@types/bun": "^1.3.10",
|
|
385
385
|
"@types/node": "^25.4.0",
|
|
386
386
|
"@types/semver": "^7.7.1",
|
|
387
387
|
"bun-types-no-globals": "^1.3.10",
|
|
388
|
-
"rolldown": "1.0.0-rc.
|
|
389
|
-
"tsdown": "^0.
|
|
388
|
+
"rolldown": "1.0.0-rc.9",
|
|
389
|
+
"tsdown": "^0.21.2",
|
|
390
390
|
"typescript": "^5.9.3",
|
|
391
391
|
"undici-types": "^7.22.0"
|
|
392
392
|
},
|
|
@@ -426,5 +426,5 @@
|
|
|
426
426
|
"unloader": { "optional": true }
|
|
427
427
|
},
|
|
428
428
|
"publishConfig": { "access": "public" },
|
|
429
|
-
"gitHead": "
|
|
429
|
+
"gitHead": "2fb48143904805988bac9bdbc04cdc4a35ff398b"
|
|
430
430
|
}
|