@powerlines/plugin-webpack 0.5.309 → 0.5.311
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/helpers/index.d.cts +3 -3
- package/dist/helpers/index.d.mts +3 -3
- package/dist/helpers/resolve-options.d.cts +1 -1
- package/dist/helpers/resolve-options.d.mts +1 -1
- package/dist/helpers/unplugin.d.cts +2 -2
- package/dist/helpers/unplugin.d.mts +2 -2
- package/dist/index.d.cts +9 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-COnpsiZi.d.cts → plugin-CzRwwkrS.d.cts} +2 -2
- package/dist/{plugin-COnpsiZi.d.cts.map → plugin-CzRwwkrS.d.cts.map} +1 -1
- package/dist/{plugin-ULwkWpRB.d.mts → plugin-D1nQWYcr.d.mts} +2 -2
- package/dist/{plugin-ULwkWpRB.d.mts.map → plugin-D1nQWYcr.d.mts.map} +1 -1
- package/dist/{resolve-options-Bqxsebcu.d.mts → resolve-options-BEwQZOSu.d.mts} +2 -2
- package/dist/resolve-options-BEwQZOSu.d.mts.map +1 -0
- package/dist/{resolve-options-DcJRe7H7.d.cts → resolve-options-DDI_x0af.d.cts} +2 -2
- package/dist/resolve-options-DDI_x0af.d.cts.map +1 -0
- package/dist/resolve-options-u4_-_S6N.mjs.map +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/{unplugin-B37RSckV.d.cts → unplugin-D-6t9TmW.d.cts} +2 -2
- package/dist/unplugin-D-6t9TmW.d.cts.map +1 -0
- package/dist/{unplugin-D1Xsvb_L.d.mts → unplugin-DyJvzeYF.d.mts} +2 -2
- package/dist/unplugin-DyJvzeYF.d.mts.map +1 -0
- package/package.json +3 -3
- package/dist/resolve-options-Bqxsebcu.d.mts.map +0 -1
- package/dist/resolve-options-DcJRe7H7.d.cts.map +0 -1
- package/dist/unplugin-B37RSckV.d.cts.map +0 -1
- package/dist/unplugin-D1Xsvb_L.d.mts.map +0 -1
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-DDI_x0af.cjs";
|
|
2
2
|
import "../build-Be4opB6C.cjs";
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createWebpackPlugin } from "../unplugin-
|
|
3
|
+
import "../plugin-CzRwwkrS.cjs";
|
|
4
|
+
import { t as createWebpackPlugin } from "../unplugin-D-6t9TmW.cjs";
|
|
5
5
|
import "../index-CiBIKhMu.cjs";
|
|
6
6
|
export { createWebpackPlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-BEwQZOSu.mjs";
|
|
2
2
|
import "../build-DVeo-6VK.mjs";
|
|
3
|
-
import "../plugin-
|
|
4
|
-
import { t as createWebpackPlugin } from "../unplugin-
|
|
3
|
+
import "../plugin-D1nQWYcr.mjs";
|
|
4
|
+
import { t as createWebpackPlugin } from "../unplugin-DyJvzeYF.mjs";
|
|
5
5
|
import "../index-mH1MEWOz.mjs";
|
|
6
6
|
export { createWebpackPlugin, resolveOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-DDI_x0af.cjs";
|
|
2
2
|
export { resolveOptions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveOptions } from "../resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "../resolve-options-BEwQZOSu.mjs";
|
|
2
2
|
export { resolveOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-Be4opB6C.cjs";
|
|
2
|
-
import "../plugin-
|
|
3
|
-
import { t as createWebpackPlugin } from "../unplugin-
|
|
2
|
+
import "../plugin-CzRwwkrS.cjs";
|
|
3
|
+
import { t as createWebpackPlugin } from "../unplugin-D-6t9TmW.cjs";
|
|
4
4
|
export { createWebpackPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-DVeo-6VK.mjs";
|
|
2
|
-
import "../plugin-
|
|
3
|
-
import { t as createWebpackPlugin } from "../unplugin-
|
|
2
|
+
import "../plugin-D1nQWYcr.mjs";
|
|
3
|
+
import { t as createWebpackPlugin } from "../unplugin-DyJvzeYF.mjs";
|
|
4
4
|
export { createWebpackPlugin };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-DDI_x0af.cjs";
|
|
2
2
|
import "./build-Be4opB6C.cjs";
|
|
3
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "./plugin-
|
|
4
|
-
import { t as createWebpackPlugin } from "./unplugin-
|
|
3
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "./plugin-CzRwwkrS.cjs";
|
|
4
|
+
import { t as createWebpackPlugin } from "./unplugin-D-6t9TmW.cjs";
|
|
5
5
|
import "./index-CiBIKhMu.cjs";
|
|
6
6
|
import "./index-B_e8BwCm.cjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
webpack?: WebpackPluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
17
|
*/
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAkCc;;;AAJU;;;AAIU,cAOrB,MAPqB,EAAA,CAAA,iBAQf,oBARe,GAQQ,oBARR,CAAA,CAAA,OAAA,CAAA,EAUvB,oBAVuB,EAAA,GAW/B,MAX+B,CAWxB,QAXwB,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { t as resolveOptions } from "./resolve-options-
|
|
1
|
+
import { t as resolveOptions } from "./resolve-options-BEwQZOSu.mjs";
|
|
2
2
|
import "./build-DVeo-6VK.mjs";
|
|
3
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "./plugin-
|
|
4
|
-
import { t as createWebpackPlugin } from "./unplugin-
|
|
3
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "./plugin-D1nQWYcr.mjs";
|
|
4
|
+
import { t as createWebpackPlugin } from "./unplugin-DyJvzeYF.mjs";
|
|
5
5
|
import "./index-mH1MEWOz.mjs";
|
|
6
6
|
import "./index-CW2WHUXP.mjs";
|
|
7
|
-
import { Plugin } from "@powerlines/core
|
|
7
|
+
import { Plugin } from "@powerlines/core";
|
|
8
8
|
|
|
9
9
|
//#region src/index.d.ts
|
|
10
|
+
declare module "@powerlines/core" {
|
|
11
|
+
interface BaseConfig {
|
|
12
|
+
webpack?: WebpackPluginOptions;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
17
|
*/
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;cAkCc;;;AAJU;;;AAIU,cAOrB,MAPqB,EAAA,CAAA,iBAQf,oBARe,GAQQ,oBARR,CAAA,CAAA,OAAA,CAAA,EAUvB,oBAVuB,EAAA,GAW/B,MAX+B,CAWxB,QAXwB,CAAA"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { Plugin } from \"@powerlines/core
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { Plugin } from \"@powerlines/core\";\nimport defu from \"defu\";\nimport build from \"webpack\";\nimport { resolveOptions } from \"./helpers/resolve-options\";\nimport { createWebpackPlugin } from \"./helpers/unplugin\";\nimport {\n WebpackPluginContext,\n WebpackPluginOptions,\n WebpackPluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n webpack?: WebpackPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends WebpackPluginContext = WebpackPluginContext\n>(\n options: WebpackPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"webpack\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `webpack` build plugin.\"\n );\n\n return {\n webpack: {\n ...options\n }\n } as Partial<WebpackPluginResolvedConfig>;\n },\n async build() {\n build(\n defu(\n {\n entry: this.entry.reduce(\n (ret, entry) => {\n ret[entry.output || entry.name || entry.file] = entry.file;\n\n return ret;\n },\n {} as Record<string, string>\n )\n },\n resolveOptions(this),\n {\n plugins: [createWebpackPlugin(this)]\n }\n )\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAyCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MACH,6EACD;AAED,UAAO,EACL,SAAS,EACP,GAAG,SACJ,EACF;;EAEH,MAAM,QAAQ;AACZ,SACE,KACE,EACE,OAAO,KAAK,MAAM,QACf,KAAK,UAAU;AACd,QAAI,MAAM,UAAU,MAAM,QAAQ,MAAM,QAAQ,MAAM;AAEtD,WAAO;MAET,EAAE,CACH,EACF,EACD,eAAe,KAAK,EACpB,EACE,SAAS,CAAC,oBAAoB,KAAK,CAAC,EACrC,CACF,CACF;;EAEJ;;AAGH,kBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WebpackOptions } from "./build-Be4opB6C.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩWebpackPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩWebpackPluginContext as a, __ΩWebpackPluginUserConfig as c, WebpackPluginUserConfig as i, WebpackPluginOptions as n, __ΩWebpackPluginOptions as o, WebpackPluginResolvedConfig as r, __ΩWebpackPluginResolvedConfig as s, WebpackPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-CzRwwkrS.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-CzRwwkrS.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;UAE1B,uBAAA,SAAgC;EAFrC,OAAA,CAAA,EAGA,oBAHoB;AAEhC;AAIiB,UAAA,2BAAA,SAAoC,cAAA,CAAA;EAIzC,OAAA,EAHD,cAGqB;;AAE5B,KAFQ,oBAER,CAAA,wBADsB,2BACtB,GAAA,2BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,uCAAA,GAAA,EAAA;AAAd,0CAAA,GAAA,EAAA;AAAa,8CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WebpackOptions } from "./build-DVeo-6VK.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/types/plugin.d.ts
|
|
5
5
|
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
@@ -16,4 +16,4 @@ declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
|
16
16
|
declare type __ΩWebpackPluginContext = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { __ΩWebpackPluginContext as a, __ΩWebpackPluginUserConfig as c, WebpackPluginUserConfig as i, WebpackPluginOptions as n, __ΩWebpackPluginOptions as o, WebpackPluginResolvedConfig as r, __ΩWebpackPluginResolvedConfig as s, WebpackPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-
|
|
19
|
+
//# sourceMappingURL=plugin-D1nQWYcr.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-
|
|
1
|
+
{"version":3,"file":"plugin-D1nQWYcr.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,oBAAA,GAAuB,QAAQ;UAE1B,uBAAA,SAAgC;EAFrC,OAAA,CAAA,EAGA,oBAHoB;AAEhC;AAIiB,UAAA,2BAAA,SAAoC,cAAA,CAAA;EAIzC,OAAA,EAHD,cAGqB;;AAE5B,KAFQ,oBAER,CAAA,wBADsB,2BACtB,GAAA,2BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA;AACc,uCAAA,GAAA,EAAA;AAAd,0CAAA,GAAA,EAAA;AAAa,8CAAA,GAAA,EAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Configuration } from "webpack";
|
|
2
|
-
import { Context } from "@powerlines/core
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
5
5
|
|
|
@@ -12,4 +12,4 @@ import { Context } from "@powerlines/core/types";
|
|
|
12
12
|
declare function resolveOptions(context: Context): Configuration;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-BEwQZOSu.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-BEwQZOSu.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core
|
|
1
|
+
import { Context } from "@powerlines/core";
|
|
2
2
|
import { Configuration } from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/resolve-options.d.ts
|
|
@@ -12,4 +12,4 @@ import { Configuration } from "webpack";
|
|
|
12
12
|
declare function resolveOptions(context: Context): Configuration;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { resolveOptions as t };
|
|
15
|
-
//# sourceMappingURL=resolve-options-
|
|
15
|
+
//# sourceMappingURL=resolve-options-DDI_x0af.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options-DDI_x0af.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-u4_-_S6N.mjs","names":[],"sources":["../src/helpers/resolve-options.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 { Context } from \"@powerlines/core
|
|
1
|
+
{"version":3,"file":"resolve-options-u4_-_S6N.mjs","names":[],"sources":["../src/helpers/resolve-options.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 { Context } from \"@powerlines/core\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport type { Configuration as ExternalWebpackOptions } from \"webpack\";\nimport { WebpackPluginResolvedConfig } from \"../types\";\n\n/**\n * Resolves the options for [webpack](https://webpack.js.org/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ExternalWebpackOptions {\n return defu(\n {\n resolve: {\n alias: context.alias\n }\n },\n (context.config as WebpackPluginResolvedConfig).webpack\n ? (context.config as WebpackPluginResolvedConfig).webpack\n : {},\n {\n output: {\n path: joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.output.buildPath\n )\n },\n name: context.config.name,\n plugins:\n (context.config as WebpackPluginResolvedConfig).webpack?.plugins ?? [],\n node:\n context.config.platform === \"node\"\n ? ({\n __dirname: true,\n __filename: true,\n global: true\n } as ExternalWebpackOptions[\"node\"])\n : false,\n mode:\n context.config.mode === \"development\"\n ? (\"development\" as const)\n : (\"production\" as const),\n cache: {\n type: \"filesystem\" as const,\n cacheDirectory: joinPaths(context.cachePath, \"webpack\", \"cache\")\n },\n recordsInputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n recordsOutputPath: joinPaths(\n context.cachePath,\n \"webpack\",\n \".webpack-records.json\"\n ),\n context: joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.root\n ),\n noExternal: context.builtins,\n devtool: (context.config.mode !== \"development\"\n ? false\n : \"source-map\") as string | false,\n optimization: {\n minimize: context.config.mode !== \"development\"\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;AA8BA,SAAgB,eAAe,SAA0C;AACvE,QAAO,KACL,EACE,SAAS,EACP,OAAO,QAAQ,OAChB,EACF,EACA,QAAQ,OAAuC,UAC3C,QAAQ,OAAuC,UAChD,EAAE,EACN;EACE,QAAQ,EACN,MAAM,UACJ,QAAQ,gBAAgB,eACxB,QAAQ,OAAO,OAAO,UACvB,EACF;EACD,MAAM,QAAQ,OAAO;EACrB,SACG,QAAQ,OAAuC,SAAS,WAAW,EAAE;EACxE,MACE,QAAQ,OAAO,aAAa,SACvB;GACC,WAAW;GACX,YAAY;GACZ,QAAQ;GACT,GACD;EACN,MACE,QAAQ,OAAO,SAAS,gBACnB,gBACA;EACP,OAAO;GACL,MAAM;GACN,gBAAgB,UAAU,QAAQ,WAAW,WAAW,QAAQ;GACjE;EACD,kBAAkB,UAChB,QAAQ,WACR,WACA,wBACD;EACD,mBAAmB,UACjB,QAAQ,WACR,WACA,wBACD;EACD,SAAS,UACP,QAAQ,gBAAgB,eACxB,QAAQ,OAAO,KAChB;EACD,YAAY,QAAQ;EACpB,SAAU,QAAQ,OAAO,SAAS,gBAC9B,QACA;EACJ,cAAc,EACZ,UAAU,QAAQ,OAAO,SAAS,eACnC;EACF,CACF"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-Be4opB6C.cjs";
|
|
2
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-CzRwwkrS.cjs";
|
|
3
3
|
import "../index-B_e8BwCm.cjs";
|
|
4
4
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../build-DVeo-6VK.mjs";
|
|
2
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-D1nQWYcr.mjs";
|
|
3
3
|
import "../index-CW2WHUXP.mjs";
|
|
4
4
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-Be4opB6C.cjs";
|
|
2
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-CzRwwkrS.cjs";
|
|
3
3
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../build-DVeo-6VK.mjs";
|
|
2
|
-
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-
|
|
2
|
+
import { a as __ΩWebpackPluginContext, c as __ΩWebpackPluginUserConfig, i as WebpackPluginUserConfig, n as WebpackPluginOptions, o as __ΩWebpackPluginOptions, r as WebpackPluginResolvedConfig, s as __ΩWebpackPluginResolvedConfig, t as WebpackPluginContext } from "../plugin-D1nQWYcr.mjs";
|
|
3
3
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin-
|
|
1
|
+
import { t as WebpackPluginContext } from "./plugin-CzRwwkrS.cjs";
|
|
2
2
|
import * as webpack0 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-D-6t9TmW.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-D-6t9TmW.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin-
|
|
1
|
+
import { t as WebpackPluginContext } from "./plugin-D1nQWYcr.mjs";
|
|
2
2
|
import * as webpack0 from "webpack";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.d.ts
|
|
5
5
|
declare function createWebpackPlugin(context: WebpackPluginContext): webpack0.WebpackPluginInstance;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-
|
|
8
|
+
//# sourceMappingURL=unplugin-DyJvzeYF.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin-DyJvzeYF.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-webpack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.311",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"keywords": ["webpack", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"typings": "dist/index.d.mts",
|
|
74
74
|
"files": ["dist/**/*"],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@powerlines/core": "^0.0
|
|
76
|
+
"@powerlines/core": "^0.1.0",
|
|
77
77
|
"@stryke/path": "^0.26.6",
|
|
78
78
|
"defu": "^6.1.4",
|
|
79
79
|
"unplugin": "3.0.0-beta.3"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"peerDependencies": { "webpack": ">=5.101.0" },
|
|
83
83
|
"peerDependenciesMeta": { "webpack": { "optional": false } },
|
|
84
84
|
"publishConfig": { "access": "public" },
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
86
86
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-Bqxsebcu.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-DcJRe7H7.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;iBAAgB,cAAA,UAAwB,UAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-B37RSckV.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-D1Xsvb_L.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"sourcesContent":[],"mappings":";;;;iBAsBgB,mBAAA,UAA6B,uBAAoB,QAAA,CAAA"}
|