@rspack/core 0.6.1-canary-e0da4a1-20240411083406 → 0.6.1
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.
|
@@ -2,7 +2,6 @@ export { RspackBuiltinPlugin } from "./base";
|
|
|
2
2
|
export * from "./DefinePlugin";
|
|
3
3
|
export * from "./ProvidePlugin";
|
|
4
4
|
export * from "./BannerPlugin";
|
|
5
|
-
export * from "./IgnorePlugin";
|
|
6
5
|
export * from "./ProgressPlugin";
|
|
7
6
|
export * from "./EntryPlugin";
|
|
8
7
|
export * from "./ExternalsPlugin";
|
|
@@ -20,7 +20,6 @@ Object.defineProperty(exports, "RspackBuiltinPlugin", { enumerable: true, get: f
|
|
|
20
20
|
__exportStar(require("./DefinePlugin"), exports);
|
|
21
21
|
__exportStar(require("./ProvidePlugin"), exports);
|
|
22
22
|
__exportStar(require("./BannerPlugin"), exports);
|
|
23
|
-
__exportStar(require("./IgnorePlugin"), exports);
|
|
24
23
|
__exportStar(require("./ProgressPlugin"), exports);
|
|
25
24
|
__exportStar(require("./EntryPlugin"), exports);
|
|
26
25
|
__exportStar(require("./ExternalsPlugin"), exports);
|
package/dist/exports.d.ts
CHANGED
|
@@ -806,7 +806,6 @@ export { registerGlobalTrace as experimental_registerGlobalTrace, cleanupGlobalT
|
|
|
806
806
|
export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
|
|
807
807
|
export { BannerPlugin } from "./builtin-plugin";
|
|
808
808
|
export type { BannerPluginArgument } from "./builtin-plugin";
|
|
809
|
-
export { IgnorePlugin, type IgnorePluginOptions } from "./builtin-plugin";
|
|
810
809
|
export { ProvidePlugin } from "./builtin-plugin";
|
|
811
810
|
export type { ProvidePluginOptions } from "./builtin-plugin";
|
|
812
811
|
export { DefinePlugin } from "./builtin-plugin";
|
package/dist/exports.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CssExtractRspackPlugin = exports.EvalDevToolModulePlugin = exports.EvalSourceMapDevToolPlugin = exports.SourceMapDevToolPlugin = exports.CopyRspackPlugin = exports.SwcCssMinimizerRspackPlugin = exports.SwcJsMinimizerRspackPlugin = exports.HtmlRspackPlugin = exports.sharing = exports.container = exports.optimize = exports.webworker = exports.javascript = exports.wasm = exports.library = exports.electron = exports.node = exports.NormalModuleReplacementPlugin = exports.EnvironmentPlugin = exports.LoaderTargetPlugin = exports.LoaderOptionsPlugin = exports.HotModuleReplacementPlugin = exports.ExternalsPlugin = exports.EntryPlugin = exports.ProgressPlugin = exports.DefinePlugin = exports.ProvidePlugin = exports.
|
|
6
|
+
exports.CssExtractRspackPlugin = exports.EvalDevToolModulePlugin = exports.EvalSourceMapDevToolPlugin = exports.SourceMapDevToolPlugin = exports.CopyRspackPlugin = exports.SwcCssMinimizerRspackPlugin = exports.SwcJsMinimizerRspackPlugin = exports.HtmlRspackPlugin = exports.sharing = exports.container = exports.optimize = exports.webworker = exports.javascript = exports.wasm = exports.library = exports.electron = exports.node = exports.NormalModuleReplacementPlugin = exports.EnvironmentPlugin = exports.LoaderTargetPlugin = exports.LoaderOptionsPlugin = exports.HotModuleReplacementPlugin = exports.ExternalsPlugin = exports.EntryPlugin = exports.ProgressPlugin = exports.DefinePlugin = exports.ProvidePlugin = exports.BannerPlugin = exports.EntryOptionPlugin = exports.experimental_cleanupGlobalTrace = exports.experimental_registerGlobalTrace = exports.util = exports.config = exports.sources = exports.WebpackError = exports.Template = exports.ModuleFilenameHelpers = exports.NormalModule = exports.MultiStats = exports.Stats = exports.RuntimeGlobals = exports.WebpackOptionsApply = exports.RspackOptionsApply = exports.MultiCompiler = exports.Compilation = exports.Compiler = exports.rspackVersion = exports.version = void 0;
|
|
7
7
|
const { version: rspackVersion, webpackVersion } = require("../package.json");
|
|
8
8
|
exports.rspackVersion = rspackVersion;
|
|
9
9
|
exports.version = webpackVersion;
|
|
@@ -50,19 +50,17 @@ Object.defineProperty(exports, "EntryOptionPlugin", { enumerable: true, get: fun
|
|
|
50
50
|
var builtin_plugin_1 = require("./builtin-plugin");
|
|
51
51
|
Object.defineProperty(exports, "BannerPlugin", { enumerable: true, get: function () { return builtin_plugin_1.BannerPlugin; } });
|
|
52
52
|
var builtin_plugin_2 = require("./builtin-plugin");
|
|
53
|
-
Object.defineProperty(exports, "
|
|
53
|
+
Object.defineProperty(exports, "ProvidePlugin", { enumerable: true, get: function () { return builtin_plugin_2.ProvidePlugin; } });
|
|
54
54
|
var builtin_plugin_3 = require("./builtin-plugin");
|
|
55
|
-
Object.defineProperty(exports, "
|
|
55
|
+
Object.defineProperty(exports, "DefinePlugin", { enumerable: true, get: function () { return builtin_plugin_3.DefinePlugin; } });
|
|
56
56
|
var builtin_plugin_4 = require("./builtin-plugin");
|
|
57
|
-
Object.defineProperty(exports, "
|
|
57
|
+
Object.defineProperty(exports, "ProgressPlugin", { enumerable: true, get: function () { return builtin_plugin_4.ProgressPlugin; } });
|
|
58
58
|
var builtin_plugin_5 = require("./builtin-plugin");
|
|
59
|
-
Object.defineProperty(exports, "
|
|
59
|
+
Object.defineProperty(exports, "EntryPlugin", { enumerable: true, get: function () { return builtin_plugin_5.EntryPlugin; } });
|
|
60
60
|
var builtin_plugin_6 = require("./builtin-plugin");
|
|
61
|
-
Object.defineProperty(exports, "
|
|
61
|
+
Object.defineProperty(exports, "ExternalsPlugin", { enumerable: true, get: function () { return builtin_plugin_6.ExternalsPlugin; } });
|
|
62
62
|
var builtin_plugin_7 = require("./builtin-plugin");
|
|
63
|
-
Object.defineProperty(exports, "
|
|
64
|
-
var builtin_plugin_8 = require("./builtin-plugin");
|
|
65
|
-
Object.defineProperty(exports, "HotModuleReplacementPlugin", { enumerable: true, get: function () { return builtin_plugin_8.HotModuleReplacementPlugin; } });
|
|
63
|
+
Object.defineProperty(exports, "HotModuleReplacementPlugin", { enumerable: true, get: function () { return builtin_plugin_7.HotModuleReplacementPlugin; } });
|
|
66
64
|
var LoaderOptionsPlugin_1 = require("./lib/LoaderOptionsPlugin");
|
|
67
65
|
Object.defineProperty(exports, "LoaderOptionsPlugin", { enumerable: true, get: function () { return LoaderOptionsPlugin_1.LoaderOptionsPlugin; } });
|
|
68
66
|
var LoaderTargetPlugin_1 = require("./lib/LoaderTargetPlugin");
|
|
@@ -72,20 +70,20 @@ Object.defineProperty(exports, "EnvironmentPlugin", { enumerable: true, get: fun
|
|
|
72
70
|
var NormalModuleReplacementPlugin_1 = require("./lib/NormalModuleReplacementPlugin");
|
|
73
71
|
Object.defineProperty(exports, "NormalModuleReplacementPlugin", { enumerable: true, get: function () { return NormalModuleReplacementPlugin_1.NormalModuleReplacementPlugin; } });
|
|
74
72
|
const NodeTemplatePlugin_1 = __importDefault(require("./node/NodeTemplatePlugin"));
|
|
73
|
+
const builtin_plugin_8 = require("./builtin-plugin");
|
|
74
|
+
exports.node = { NodeTargetPlugin: builtin_plugin_8.NodeTargetPlugin, NodeTemplatePlugin: NodeTemplatePlugin_1.default };
|
|
75
75
|
const builtin_plugin_9 = require("./builtin-plugin");
|
|
76
|
-
exports.
|
|
76
|
+
exports.electron = { ElectronTargetPlugin: builtin_plugin_9.ElectronTargetPlugin };
|
|
77
77
|
const builtin_plugin_10 = require("./builtin-plugin");
|
|
78
|
-
exports.
|
|
78
|
+
exports.library = { EnableLibraryPlugin: builtin_plugin_10.EnableLibraryPlugin };
|
|
79
79
|
const builtin_plugin_11 = require("./builtin-plugin");
|
|
80
|
-
exports.
|
|
80
|
+
exports.wasm = { EnableWasmLoadingPlugin: builtin_plugin_11.EnableWasmLoadingPlugin };
|
|
81
81
|
const builtin_plugin_12 = require("./builtin-plugin");
|
|
82
|
-
exports.
|
|
82
|
+
exports.javascript = { EnableChunkLoadingPlugin: builtin_plugin_12.EnableChunkLoadingPlugin };
|
|
83
83
|
const builtin_plugin_13 = require("./builtin-plugin");
|
|
84
|
-
exports.
|
|
84
|
+
exports.webworker = { WebWorkerTemplatePlugin: builtin_plugin_13.WebWorkerTemplatePlugin };
|
|
85
85
|
const builtin_plugin_14 = require("./builtin-plugin");
|
|
86
|
-
exports.
|
|
87
|
-
const builtin_plugin_15 = require("./builtin-plugin");
|
|
88
|
-
exports.optimize = { LimitChunkCountPlugin: builtin_plugin_15.LimitChunkCountPlugin };
|
|
86
|
+
exports.optimize = { LimitChunkCountPlugin: builtin_plugin_14.LimitChunkCountPlugin };
|
|
89
87
|
const ModuleFederationPlugin_1 = require("./container/ModuleFederationPlugin");
|
|
90
88
|
const ModuleFederationPluginV1_1 = require("./container/ModuleFederationPluginV1");
|
|
91
89
|
const ContainerPlugin_1 = require("./container/ContainerPlugin");
|
|
@@ -105,19 +103,19 @@ exports.sharing = {
|
|
|
105
103
|
SharePlugin: SharePlugin_1.SharePlugin
|
|
106
104
|
};
|
|
107
105
|
///// Rspack Postfixed Internal Plugins /////
|
|
106
|
+
var builtin_plugin_15 = require("./builtin-plugin");
|
|
107
|
+
Object.defineProperty(exports, "HtmlRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_15.HtmlRspackPlugin; } });
|
|
108
108
|
var builtin_plugin_16 = require("./builtin-plugin");
|
|
109
|
-
Object.defineProperty(exports, "
|
|
109
|
+
Object.defineProperty(exports, "SwcJsMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_16.SwcJsMinimizerRspackPlugin; } });
|
|
110
110
|
var builtin_plugin_17 = require("./builtin-plugin");
|
|
111
|
-
Object.defineProperty(exports, "
|
|
111
|
+
Object.defineProperty(exports, "SwcCssMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_17.SwcCssMinimizerRspackPlugin; } });
|
|
112
112
|
var builtin_plugin_18 = require("./builtin-plugin");
|
|
113
|
-
Object.defineProperty(exports, "
|
|
113
|
+
Object.defineProperty(exports, "CopyRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_18.CopyRspackPlugin; } });
|
|
114
114
|
var builtin_plugin_19 = require("./builtin-plugin");
|
|
115
|
-
Object.defineProperty(exports, "
|
|
115
|
+
Object.defineProperty(exports, "SourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_19.SourceMapDevToolPlugin; } });
|
|
116
116
|
var builtin_plugin_20 = require("./builtin-plugin");
|
|
117
|
-
Object.defineProperty(exports, "
|
|
117
|
+
Object.defineProperty(exports, "EvalSourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_20.EvalSourceMapDevToolPlugin; } });
|
|
118
118
|
var builtin_plugin_21 = require("./builtin-plugin");
|
|
119
|
-
Object.defineProperty(exports, "
|
|
119
|
+
Object.defineProperty(exports, "EvalDevToolModulePlugin", { enumerable: true, get: function () { return builtin_plugin_21.EvalDevToolModulePlugin; } });
|
|
120
120
|
var builtin_plugin_22 = require("./builtin-plugin");
|
|
121
|
-
Object.defineProperty(exports, "
|
|
122
|
-
var builtin_plugin_23 = require("./builtin-plugin");
|
|
123
|
-
Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_23.CssExtractRspackPlugin; } });
|
|
121
|
+
Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_22.CssExtractRspackPlugin; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.1
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"styled-components": "^6.0.8",
|
|
60
60
|
"terser": "5.27.2",
|
|
61
61
|
"wast-loader": "^1.11.4",
|
|
62
|
-
"@rspack/core": "0.6.1
|
|
63
|
-
"@rspack/plugin-minify": "^0.6.1
|
|
62
|
+
"@rspack/core": "0.6.1",
|
|
63
|
+
"@rspack/plugin-minify": "^0.6.1"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@module-federation/runtime-tools": "0.0.8",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"webpack-sources": "3.2.3",
|
|
76
76
|
"zod": "^3.21.4",
|
|
77
77
|
"zod-validation-error": "1.3.1",
|
|
78
|
-
"@rspack/binding": "0.6.1
|
|
78
|
+
"@rspack/binding": "0.6.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuiltinPluginName, RawIgnorePluginOptions } from "@rspack/binding";
|
|
2
|
-
export type IgnorePluginOptions = RawIgnorePluginOptions;
|
|
3
|
-
export declare const IgnorePlugin: {
|
|
4
|
-
new (options: RawIgnorePluginOptions): {
|
|
5
|
-
name: BuiltinPluginName;
|
|
6
|
-
_options: RawIgnorePluginOptions;
|
|
7
|
-
affectedHooks: "make" | "compile" | "emit" | "afterEmit" | "invalid" | "done" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | undefined;
|
|
8
|
-
raw(): import("@rspack/binding").BuiltinPlugin;
|
|
9
|
-
apply(compiler: import("../Compiler").Compiler): void;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IgnorePlugin = void 0;
|
|
4
|
-
const binding_1 = require("@rspack/binding");
|
|
5
|
-
const base_1 = require("./base");
|
|
6
|
-
exports.IgnorePlugin = (0, base_1.create)(binding_1.BuiltinPluginName.IgnorePlugin, (options) => options);
|