@powerlines/plugin-rspack 0.5.187 → 0.5.189
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/packages/plugin-rspack/src/helpers/index.cjs +3 -0
- package/dist/packages/plugin-rspack/src/helpers/unplugin.cjs +11 -0
- package/dist/{helpers → packages/plugin-rspack/src/helpers}/unplugin.mjs +1 -1
- package/dist/{types/plugin.d.mts → packages/plugin-rspack/src/types/plugin.d.cts} +3 -3
- package/dist/{types/plugin.d.cts → packages/plugin-rspack/src/types/plugin.d.mts} +3 -3
- package/dist/{index.cjs → src/index.cjs} +6 -6
- package/dist/{index.d.cts → src/index.d.cts} +3 -3
- package/dist/{index.d.mts → src/index.d.mts} +5 -5
- package/dist/{index.mjs → src/index.mjs} +3 -3
- package/package.json +4 -4
- package/dist/helpers/index.cjs +0 -3
- package/dist/helpers/unplugin.cjs +0 -11
- /package/dist/{helpers → packages/plugin-rspack/src/helpers}/index.d.cts +0 -0
- /package/dist/{helpers → packages/plugin-rspack/src/helpers}/index.d.mts +0 -0
- /package/dist/{helpers → packages/plugin-rspack/src/helpers}/index.mjs +0 -0
- /package/dist/{helpers → packages/plugin-rspack/src/helpers}/unplugin.d.cts +0 -0
- /package/dist/{helpers → packages/plugin-rspack/src/helpers}/unplugin.d.mts +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/index.cjs +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/index.d.cts +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/index.d.mts +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/index.mjs +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/plugin.cjs +0 -0
- /package/dist/{types → packages/plugin-rspack/src/types}/plugin.mjs +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_index = require('../../../../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs');
|
|
3
|
+
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/unplugin.ts
|
|
6
|
+
function createRspackPlugin(context) {
|
|
7
|
+
return require_index.createRspackPlugin((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.createRspackPlugin = createRspackPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRspackPlugin as createRspackPlugin$1 } from "
|
|
1
|
+
import { createRspackPlugin as createRspackPlugin$1 } from "../../../../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs";
|
|
2
2
|
import { createUnplugin } from "powerlines/lib/unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/unplugin.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RspackBuildConfig } from "
|
|
2
|
-
import { RspackResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
1
|
+
import { RspackBuildConfig } from "../../../../powerlines/src/types/build.cjs";
|
|
2
|
+
import { RspackResolvedConfig } from "../../../../powerlines/src/types/resolved.cjs";
|
|
3
|
+
import { PluginContext } from "../../../../powerlines/src/types/context.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type RspackPluginOptions = Partial<RspackBuildConfig>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RspackBuildConfig } from "
|
|
2
|
-
import { RspackResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
1
|
+
import { RspackBuildConfig } from "../../../powerlines/src/types/build.mjs";
|
|
2
|
+
import { RspackResolvedConfig } from "../../../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../../../powerlines/src/types/context.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/types/plugin.d.ts
|
|
6
6
|
type RspackPluginOptions = Partial<RspackBuildConfig>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_rolldown_runtime = require('
|
|
3
|
-
const require_chunk_POXTJ6GF = require('
|
|
4
|
-
const
|
|
5
|
-
require('
|
|
2
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_chunk_POXTJ6GF = require('../node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
|
|
4
|
+
const require_packages_plugin_rspack_src_helpers_unplugin = require('../packages/plugin-rspack/src/helpers/unplugin.cjs');
|
|
5
|
+
require('../packages/plugin-rspack/src/helpers/index.cjs');
|
|
6
6
|
let __rspack_core = require("@rspack/core");
|
|
7
7
|
let defu = require("defu");
|
|
8
8
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
@@ -26,13 +26,13 @@ const plugin = (options = {}) => {
|
|
|
26
26
|
(0, __rspack_core.rspack)((0, defu.default)({ entry: this.entry.reduce((ret, entry) => {
|
|
27
27
|
ret[entry.output || entry.name || entry.file] = entry.file;
|
|
28
28
|
return ret;
|
|
29
|
-
}, {}) }, (0, powerlines_lib_build_rspack.extractRspackConfig)(this), { plugins: [
|
|
29
|
+
}, {}) }, (0, powerlines_lib_build_rspack.extractRspackConfig)(this), { plugins: [require_packages_plugin_rspack_src_helpers_unplugin.createRspackPlugin(this)] }));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
var src_default = plugin;
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
|
-
exports.createRspackPlugin =
|
|
36
|
+
exports.createRspackPlugin = require_packages_plugin_rspack_src_helpers_unplugin.createRspackPlugin;
|
|
37
37
|
exports.default = src_default;
|
|
38
38
|
exports.plugin = plugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "
|
|
3
|
-
import { createRspackPlugin } from "
|
|
1
|
+
import { Plugin } from "../powerlines/src/types/plugin.cjs";
|
|
2
|
+
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "../packages/plugin-rspack/src/types/plugin.cjs";
|
|
3
|
+
import { createRspackPlugin } from "../packages/plugin-rspack/src/helpers/unplugin.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Plugin } from "
|
|
2
|
-
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "
|
|
3
|
-
import { createRspackPlugin } from "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
1
|
+
import { Plugin } from "../packages/powerlines/src/types/plugin.mjs";
|
|
2
|
+
import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "../packages/plugin-rspack/src/types/plugin.mjs";
|
|
3
|
+
import { createRspackPlugin } from "../packages/plugin-rspack/src/helpers/unplugin.mjs";
|
|
4
|
+
import "../packages/plugin-rspack/src/helpers/index.mjs";
|
|
5
|
+
import "../packages/plugin-rspack/src/types/index.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/index.d.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LogLevelLabel } from "
|
|
2
|
-
import { createRspackPlugin } from "
|
|
3
|
-
import "
|
|
1
|
+
import { LogLevelLabel } from "../node_modules/.pnpm/@storm-software_config-tools@1.188.80_magicast@0.5.1/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
|
|
2
|
+
import { createRspackPlugin } from "../packages/plugin-rspack/src/helpers/unplugin.mjs";
|
|
3
|
+
import "../packages/plugin-rspack/src/helpers/index.mjs";
|
|
4
4
|
import { rspack } from "@rspack/core";
|
|
5
5
|
import defu from "defu";
|
|
6
6
|
import { extractRspackConfig } from "powerlines/lib/build/rspack";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-rspack",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.189",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"@stryke/types": "^0.10.33",
|
|
153
153
|
"defu": "^6.1.4",
|
|
154
154
|
"jiti": "^2.6.1",
|
|
155
|
-
"powerlines": "^0.37.
|
|
155
|
+
"powerlines": "^0.37.54"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
158
|
+
"@powerlines/plugin-plugin": "^0.12.132",
|
|
159
159
|
"@types/node": "^24.10.9"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": { "access": "public" },
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "0030560b882e0e314b3085cc9607bc387e6bcba3"
|
|
163
163
|
}
|
package/dist/helpers/index.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_index = require('../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs');
|
|
3
|
-
let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/unplugin.ts
|
|
6
|
-
function createRspackPlugin(context) {
|
|
7
|
-
return require_index.createRspackPlugin((0, powerlines_lib_unplugin.createUnplugin)(context))({});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.createRspackPlugin = createRspackPlugin;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|