@powerlines/plugin-webpack 0.5.349 → 0.5.350
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/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.d.cts +2 -2
- package/dist/helpers/index.d.mts +2 -2
- package/dist/helpers/resolve-options.cjs +37 -2
- package/dist/helpers/resolve-options.d.cts +14 -2
- package/dist/helpers/resolve-options.d.cts.map +1 -0
- package/dist/helpers/resolve-options.d.mts +14 -2
- package/dist/helpers/resolve-options.d.mts.map +1 -0
- package/dist/helpers/unplugin.cjs +1 -1
- package/dist/helpers/unplugin.d.cts +8 -2
- package/dist/helpers/unplugin.d.cts.map +1 -0
- package/dist/helpers/unplugin.d.mts +8 -2
- package/dist/helpers/unplugin.d.mts.map +1 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/build.d.cts +8 -2
- package/dist/types/build.d.cts.map +1 -0
- package/dist/types/build.d.mts +8 -2
- package/dist/types/build.d.mts.map +1 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +19 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +19 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/package.json +4 -5
- package/dist/build-CEzG_xp-.d.mts +0 -8
- package/dist/build-CEzG_xp-.d.mts.map +0 -1
- package/dist/build-DOkvLIlZ.d.cts +0 -8
- package/dist/build-DOkvLIlZ.d.cts.map +0 -1
- package/dist/plugin--CJErpdu.d.cts +0 -19
- package/dist/plugin--CJErpdu.d.cts.map +0 -1
- package/dist/plugin-CYgzAw-a.d.mts +0 -19
- package/dist/plugin-CYgzAw-a.d.mts.map +0 -1
- package/dist/resolve-options-DeOdP6uU.cjs +0 -75
- package/dist/resolve-options-UpQ8DhtP.d.cts +0 -14
- package/dist/resolve-options-UpQ8DhtP.d.cts.map +0 -1
- package/dist/resolve-options-yCbwWgKL.d.mts +0 -14
- package/dist/resolve-options-yCbwWgKL.d.mts.map +0 -1
- package/dist/unplugin-CUN9CPLL.d.mts +0 -8
- package/dist/unplugin-CUN9CPLL.d.mts.map +0 -1
- package/dist/unplugin-DfOu6nzf.d.cts +0 -8
- package/dist/unplugin-DfOu6nzf.d.cts.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_helpers_resolve_options = require('./resolve-options.cjs');
|
|
3
3
|
const require_helpers_unplugin = require('./unplugin.cjs');
|
|
4
4
|
|
|
5
5
|
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
|
6
|
-
exports.resolveOptions =
|
|
6
|
+
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { resolveOptions } from "./resolve-options.cjs";
|
|
2
|
+
import { createWebpackPlugin } from "./unplugin.cjs";
|
|
3
3
|
export { createWebpackPlugin, resolveOptions };
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { resolveOptions } from "./resolve-options.mjs";
|
|
2
|
+
import { createWebpackPlugin } from "./unplugin.mjs";
|
|
3
3
|
export { createWebpackPlugin, resolveOptions };
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let defu = require("defu");
|
|
4
|
+
defu = require_runtime.__toESM(defu);
|
|
5
|
+
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
3
6
|
|
|
4
|
-
|
|
7
|
+
//#region src/helpers/resolve-options.ts
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
10
|
+
*
|
|
11
|
+
* @param context - The build context.
|
|
12
|
+
* @returns The resolved options.
|
|
13
|
+
*/
|
|
14
|
+
function resolveOptions(context) {
|
|
15
|
+
return (0, defu.default)({ resolve: { alias: context.alias } }, context.config.webpack ? context.config.webpack : {}, {
|
|
16
|
+
output: { path: (0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.output.buildPath) },
|
|
17
|
+
name: context.config.name,
|
|
18
|
+
plugins: context.config.webpack?.plugins ?? [],
|
|
19
|
+
node: context.config.platform === "node" ? {
|
|
20
|
+
__dirname: true,
|
|
21
|
+
__filename: true,
|
|
22
|
+
global: true
|
|
23
|
+
} : false,
|
|
24
|
+
mode: context.config.mode === "development" ? "development" : "production",
|
|
25
|
+
cache: {
|
|
26
|
+
type: "filesystem",
|
|
27
|
+
cacheDirectory: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", "cache")
|
|
28
|
+
},
|
|
29
|
+
recordsInputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
30
|
+
recordsOutputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
31
|
+
context: (0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.root),
|
|
32
|
+
noExternal: context.builtins,
|
|
33
|
+
devtool: context.config.mode !== "development" ? false : "source-map",
|
|
34
|
+
optimization: { minimize: context.config.mode !== "development" }
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.resolveOptions = resolveOptions;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Context } from "@powerlines/core";
|
|
2
|
+
import { Configuration } from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/resolve-options.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
+
*
|
|
8
|
+
* @param context - The build context.
|
|
9
|
+
* @returns The resolved options.
|
|
10
|
+
*/
|
|
11
|
+
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { resolveOptions };
|
|
14
|
+
//# sourceMappingURL=resolve-options.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options.d.cts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Configuration } from "webpack";
|
|
2
|
+
import { Context } from "@powerlines/core";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/resolve-options.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
+
*
|
|
8
|
+
* @param context - The build context.
|
|
9
|
+
* @returns The resolved options.
|
|
10
|
+
*/
|
|
11
|
+
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { resolveOptions };
|
|
14
|
+
//# sourceMappingURL=resolve-options.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-options.d.mts","names":[],"sources":["../../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
4
4
|
let unplugin = require("unplugin");
|
|
5
5
|
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackPluginContext } from "../types/plugin.cjs";
|
|
2
|
+
import * as webpack from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createWebpackPlugin(context: WebpackPluginContext): webpack.WebpackPluginInstance;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createWebpackPlugin };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,OAAA,CAAA,qBAAA"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackPluginContext } from "../types/plugin.mjs";
|
|
2
|
+
import * as webpack from "webpack";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/unplugin.d.ts
|
|
5
|
+
declare function createWebpackPlugin(context: WebpackPluginContext): webpack.WebpackPluginInstance;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { createWebpackPlugin };
|
|
8
|
+
//# sourceMappingURL=unplugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unplugin.d.mts","names":[],"sources":["../../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,OAAA,CAAA,qBAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
2
|
+
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_helpers_resolve_options = require('./helpers/resolve-options.cjs');
|
|
3
4
|
const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
4
5
|
require('./helpers/index.cjs');
|
|
5
|
-
require('./types/index.cjs');
|
|
6
6
|
let defu = require("defu");
|
|
7
|
-
defu =
|
|
7
|
+
defu = require_runtime.__toESM(defu);
|
|
8
8
|
let webpack = require("webpack");
|
|
9
|
-
webpack =
|
|
9
|
+
webpack = require_runtime.__toESM(webpack);
|
|
10
10
|
|
|
11
11
|
//#region src/index.ts
|
|
12
12
|
/**
|
|
@@ -23,7 +23,7 @@ const plugin = (options = {}) => {
|
|
|
23
23
|
(0, webpack.default)((0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
|
|
24
24
|
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
25
25
|
return ret;
|
|
26
|
-
}, {}) },
|
|
26
|
+
}, {}) }, require_helpers_resolve_options.resolveOptions(this), { plugins: [require_helpers_unplugin.createWebpackPlugin(this)] }));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
};
|
|
@@ -32,4 +32,4 @@ const plugin = (options = {}) => {
|
|
|
32
32
|
exports.createWebpackPlugin = require_helpers_unplugin.createWebpackPlugin;
|
|
33
33
|
exports.default = plugin;
|
|
34
34
|
exports.plugin = plugin;
|
|
35
|
-
exports.resolveOptions =
|
|
35
|
+
exports.resolveOptions = require_helpers_resolve_options.resolveOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { resolveOptions } from "./helpers/resolve-options.cjs";
|
|
2
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
+
import { createWebpackPlugin } from "./helpers/unplugin.cjs";
|
|
4
4
|
import { Plugin } from "@powerlines/core";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { resolveOptions } from "./helpers/resolve-options.mjs";
|
|
2
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
+
import { createWebpackPlugin } from "./helpers/unplugin.mjs";
|
|
4
4
|
import { Plugin } from "@powerlines/core";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;YAiCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;YAiCY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;cAOD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
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\";\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 Config {\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":"
|
|
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 Config {\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"}
|
package/dist/types/build.d.cts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Configuration } from "webpack";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
+
declare type __ΩWebpackOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { WebpackOptions, __ΩWebpackOptions };
|
|
8
|
+
//# sourceMappingURL=build.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.cts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
package/dist/types/build.d.mts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Configuration } from "webpack";
|
|
2
|
+
|
|
3
|
+
//#region src/types/build.d.ts
|
|
4
|
+
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
+
declare type __ΩWebpackOptions = any[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { WebpackOptions, __ΩWebpackOptions };
|
|
8
|
+
//# sourceMappingURL=build.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.mts","names":[],"sources":["../../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./plugin.cjs";
|
|
2
2
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig } from "./plugin.mjs";
|
|
2
2
|
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackOptions } from "./build.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
|
+
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
|
+
webpack?: WebpackPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
webpack: WebpackOptions;
|
|
11
|
+
}
|
|
12
|
+
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩWebpackPluginOptions = any[];
|
|
14
|
+
declare type __ΩWebpackPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩWebpackPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
|
19
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WebpackOptions } from "./build.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
|
+
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
|
+
webpack?: WebpackPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
webpack: WebpackOptions;
|
|
11
|
+
}
|
|
12
|
+
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩWebpackPluginOptions = any[];
|
|
14
|
+
declare type __ΩWebpackPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩWebpackPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { WebpackPluginContext, WebpackPluginOptions, WebpackPluginResolvedConfig, WebpackPluginUserConfig, __ΩWebpackPluginContext, __ΩWebpackPluginOptions, __ΩWebpackPluginResolvedConfig, __ΩWebpackPluginUserConfig };
|
|
19
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-webpack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.350",
|
|
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"],
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"import": "./dist/helpers/unplugin.mjs",
|
|
54
54
|
"require": "./dist/helpers/unplugin.cjs"
|
|
55
55
|
},
|
|
56
|
-
"./resolve-options-DeOdP6uU": "./dist/resolve-options-DeOdP6uU.cjs",
|
|
57
56
|
"./types": {
|
|
58
57
|
"import": "./dist/types/index.mjs",
|
|
59
58
|
"require": "./dist/types/index.cjs"
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
"import": "./dist/types/plugin.mjs",
|
|
67
66
|
"require": "./dist/types/plugin.cjs"
|
|
68
67
|
},
|
|
69
|
-
"
|
|
68
|
+
"./package.json": "./package.json"
|
|
70
69
|
},
|
|
71
70
|
"main": "./dist/index.cjs",
|
|
72
71
|
"module": "./dist/index.mjs",
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
"typings": "dist/index.d.mts",
|
|
75
74
|
"files": ["dist/**/*"],
|
|
76
75
|
"dependencies": {
|
|
77
|
-
"@powerlines/core": "^0.3.
|
|
76
|
+
"@powerlines/core": "^0.3.4",
|
|
78
77
|
"@stryke/path": "^0.26.19",
|
|
79
78
|
"defu": "^6.1.4",
|
|
80
79
|
"unplugin": "^3.0.0"
|
|
@@ -83,5 +82,5 @@
|
|
|
83
82
|
"peerDependencies": { "webpack": ">=5.101.0" },
|
|
84
83
|
"peerDependenciesMeta": { "webpack": { "optional": false } },
|
|
85
84
|
"publishConfig": { "access": "public" },
|
|
86
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "84f84362520b3532ac14ac03d6f634066e966127"
|
|
87
86
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Configuration } from "webpack";
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
-
declare type __ΩWebpackOptions = any[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { __ΩWebpackOptions as n, WebpackOptions as t };
|
|
8
|
-
//# sourceMappingURL=build-CEzG_xp-.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-CEzG_xp-.d.mts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Configuration } from "webpack";
|
|
2
|
-
|
|
3
|
-
//#region src/types/build.d.ts
|
|
4
|
-
type WebpackOptions = Omit<Configuration, "name" | "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output" | "platform" | "define" | "external">;
|
|
5
|
-
declare type __ΩWebpackOptions = any[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { __ΩWebpackOptions as n, WebpackOptions as t };
|
|
8
|
-
//# sourceMappingURL=build-DOkvLIlZ.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-DOkvLIlZ.d.cts","names":[],"sources":["../src/types/build.ts"],"mappings":";;;KAoBY,cAAA,GAAiB,IAAA,CAC3B,aAAA;AAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as WebpackOptions } from "./build-DOkvLIlZ.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
|
-
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
|
-
webpack?: WebpackPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
-
webpack: WebpackOptions;
|
|
11
|
-
}
|
|
12
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
-
declare type __ΩWebpackPluginOptions = any[];
|
|
14
|
-
declare type __ΩWebpackPluginUserConfig = any[];
|
|
15
|
-
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
16
|
-
declare type __ΩWebpackPluginContext = any[];
|
|
17
|
-
//#endregion
|
|
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--CJErpdu.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin--CJErpdu.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as WebpackOptions } from "./build-CEzG_xp-.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type WebpackPluginOptions = Partial<WebpackOptions>;
|
|
6
|
-
interface WebpackPluginUserConfig extends UserConfig {
|
|
7
|
-
webpack?: WebpackPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
interface WebpackPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
-
webpack: WebpackOptions;
|
|
11
|
-
}
|
|
12
|
-
type WebpackPluginContext<TResolvedConfig extends WebpackPluginResolvedConfig = WebpackPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
-
declare type __ΩWebpackPluginOptions = any[];
|
|
14
|
-
declare type __ΩWebpackPluginUserConfig = any[];
|
|
15
|
-
declare type __ΩWebpackPluginResolvedConfig = any[];
|
|
16
|
-
declare type __ΩWebpackPluginContext = any[];
|
|
17
|
-
//#endregion
|
|
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-CYgzAw-a.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-CYgzAw-a.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
let defu = require("defu");
|
|
29
|
-
defu = __toESM(defu);
|
|
30
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
31
|
-
|
|
32
|
-
//#region src/helpers/resolve-options.ts
|
|
33
|
-
/**
|
|
34
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
35
|
-
*
|
|
36
|
-
* @param context - The build context.
|
|
37
|
-
* @returns The resolved options.
|
|
38
|
-
*/
|
|
39
|
-
function resolveOptions(context) {
|
|
40
|
-
return (0, defu.default)({ resolve: { alias: context.alias } }, context.config.webpack ? context.config.webpack : {}, {
|
|
41
|
-
output: { path: (0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.output.buildPath) },
|
|
42
|
-
name: context.config.name,
|
|
43
|
-
plugins: context.config.webpack?.plugins ?? [],
|
|
44
|
-
node: context.config.platform === "node" ? {
|
|
45
|
-
__dirname: true,
|
|
46
|
-
__filename: true,
|
|
47
|
-
global: true
|
|
48
|
-
} : false,
|
|
49
|
-
mode: context.config.mode === "development" ? "development" : "production",
|
|
50
|
-
cache: {
|
|
51
|
-
type: "filesystem",
|
|
52
|
-
cacheDirectory: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", "cache")
|
|
53
|
-
},
|
|
54
|
-
recordsInputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
55
|
-
recordsOutputPath: (0, _stryke_path_join_paths.joinPaths)(context.cachePath, "webpack", ".webpack-records.json"),
|
|
56
|
-
context: (0, _stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, context.config.root),
|
|
57
|
-
noExternal: context.builtins,
|
|
58
|
-
devtool: context.config.mode !== "development" ? false : "source-map",
|
|
59
|
-
optimization: { minimize: context.config.mode !== "development" }
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
Object.defineProperty(exports, '__toESM', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return __toESM;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, 'resolveOptions', {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () {
|
|
73
|
-
return resolveOptions;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Context } from "@powerlines/core";
|
|
2
|
-
import { Configuration } from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
-
*
|
|
8
|
-
* @param context - The build context.
|
|
9
|
-
* @returns The resolved options.
|
|
10
|
-
*/
|
|
11
|
-
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { resolveOptions as t };
|
|
14
|
-
//# sourceMappingURL=resolve-options-UpQ8DhtP.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-UpQ8DhtP.d.cts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Configuration } from "webpack";
|
|
2
|
-
import { Context } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/resolve-options.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Resolves the options for [webpack](https://webpack.js.org/).
|
|
7
|
-
*
|
|
8
|
-
* @param context - The build context.
|
|
9
|
-
* @returns The resolved options.
|
|
10
|
-
*/
|
|
11
|
-
declare function resolveOptions(context: Context): Configuration;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { resolveOptions as t };
|
|
14
|
-
//# sourceMappingURL=resolve-options-yCbwWgKL.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-options-yCbwWgKL.d.mts","names":[],"sources":["../src/helpers/resolve-options.ts"],"mappings":";;;;;;AA8BA;;;;iBAAgB,cAAA,CAAe,OAAA,EAAS,OAAA,GAAU,aAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin-CYgzAw-a.mjs";
|
|
2
|
-
import * as webpack from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): webpack.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-CUN9CPLL.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-CUN9CPLL.d.mts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,OAAA,CAAA,qBAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { t as WebpackPluginContext } from "./plugin--CJErpdu.cjs";
|
|
2
|
-
import * as webpack from "webpack";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/unplugin.d.ts
|
|
5
|
-
declare function createWebpackPlugin(context: WebpackPluginContext): webpack.WebpackPluginInstance;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createWebpackPlugin as t };
|
|
8
|
-
//# sourceMappingURL=unplugin-DfOu6nzf.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin-DfOu6nzf.d.cts","names":[],"sources":["../src/helpers/unplugin.ts"],"mappings":";;;;iBAsBgB,mBAAA,CAAoB,OAAA,EAAS,oBAAA,GAAoB,OAAA,CAAA,qBAAA"}
|