@rspack/core 0.6.1-canary-22cb8e0-20240411041028 → 0.6.1-canary-baf60a7-20240412021745

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.
@@ -0,0 +1,11 @@
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
+ };
@@ -0,0 +1,6 @@
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);
@@ -2,6 +2,7 @@ export { RspackBuiltinPlugin } from "./base";
2
2
  export * from "./DefinePlugin";
3
3
  export * from "./ProvidePlugin";
4
4
  export * from "./BannerPlugin";
5
+ export * from "./IgnorePlugin";
5
6
  export * from "./ProgressPlugin";
6
7
  export * from "./EntryPlugin";
7
8
  export * from "./ExternalsPlugin";
@@ -20,6 +20,7 @@ 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);
23
24
  __exportStar(require("./ProgressPlugin"), exports);
24
25
  __exportStar(require("./EntryPlugin"), exports);
25
26
  __exportStar(require("./ExternalsPlugin"), exports);
package/dist/exports.d.ts CHANGED
@@ -806,6 +806,7 @@ 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";
809
810
  export { ProvidePlugin } from "./builtin-plugin";
810
811
  export type { ProvidePluginOptions } from "./builtin-plugin";
811
812
  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.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;
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.IgnorePlugin = 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,17 +50,19 @@ 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, "ProvidePlugin", { enumerable: true, get: function () { return builtin_plugin_2.ProvidePlugin; } });
53
+ Object.defineProperty(exports, "IgnorePlugin", { enumerable: true, get: function () { return builtin_plugin_2.IgnorePlugin; } });
54
54
  var builtin_plugin_3 = require("./builtin-plugin");
55
- Object.defineProperty(exports, "DefinePlugin", { enumerable: true, get: function () { return builtin_plugin_3.DefinePlugin; } });
55
+ Object.defineProperty(exports, "ProvidePlugin", { enumerable: true, get: function () { return builtin_plugin_3.ProvidePlugin; } });
56
56
  var builtin_plugin_4 = require("./builtin-plugin");
57
- Object.defineProperty(exports, "ProgressPlugin", { enumerable: true, get: function () { return builtin_plugin_4.ProgressPlugin; } });
57
+ Object.defineProperty(exports, "DefinePlugin", { enumerable: true, get: function () { return builtin_plugin_4.DefinePlugin; } });
58
58
  var builtin_plugin_5 = require("./builtin-plugin");
59
- Object.defineProperty(exports, "EntryPlugin", { enumerable: true, get: function () { return builtin_plugin_5.EntryPlugin; } });
59
+ Object.defineProperty(exports, "ProgressPlugin", { enumerable: true, get: function () { return builtin_plugin_5.ProgressPlugin; } });
60
60
  var builtin_plugin_6 = require("./builtin-plugin");
61
- Object.defineProperty(exports, "ExternalsPlugin", { enumerable: true, get: function () { return builtin_plugin_6.ExternalsPlugin; } });
61
+ Object.defineProperty(exports, "EntryPlugin", { enumerable: true, get: function () { return builtin_plugin_6.EntryPlugin; } });
62
62
  var builtin_plugin_7 = require("./builtin-plugin");
63
- Object.defineProperty(exports, "HotModuleReplacementPlugin", { enumerable: true, get: function () { return builtin_plugin_7.HotModuleReplacementPlugin; } });
63
+ Object.defineProperty(exports, "ExternalsPlugin", { enumerable: true, get: function () { return builtin_plugin_7.ExternalsPlugin; } });
64
+ var builtin_plugin_8 = require("./builtin-plugin");
65
+ Object.defineProperty(exports, "HotModuleReplacementPlugin", { enumerable: true, get: function () { return builtin_plugin_8.HotModuleReplacementPlugin; } });
64
66
  var LoaderOptionsPlugin_1 = require("./lib/LoaderOptionsPlugin");
65
67
  Object.defineProperty(exports, "LoaderOptionsPlugin", { enumerable: true, get: function () { return LoaderOptionsPlugin_1.LoaderOptionsPlugin; } });
66
68
  var LoaderTargetPlugin_1 = require("./lib/LoaderTargetPlugin");
@@ -70,20 +72,20 @@ Object.defineProperty(exports, "EnvironmentPlugin", { enumerable: true, get: fun
70
72
  var NormalModuleReplacementPlugin_1 = require("./lib/NormalModuleReplacementPlugin");
71
73
  Object.defineProperty(exports, "NormalModuleReplacementPlugin", { enumerable: true, get: function () { return NormalModuleReplacementPlugin_1.NormalModuleReplacementPlugin; } });
72
74
  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.electron = { ElectronTargetPlugin: builtin_plugin_9.ElectronTargetPlugin };
76
+ exports.node = { NodeTargetPlugin: builtin_plugin_9.NodeTargetPlugin, NodeTemplatePlugin: NodeTemplatePlugin_1.default };
77
77
  const builtin_plugin_10 = require("./builtin-plugin");
78
- exports.library = { EnableLibraryPlugin: builtin_plugin_10.EnableLibraryPlugin };
78
+ exports.electron = { ElectronTargetPlugin: builtin_plugin_10.ElectronTargetPlugin };
79
79
  const builtin_plugin_11 = require("./builtin-plugin");
80
- exports.wasm = { EnableWasmLoadingPlugin: builtin_plugin_11.EnableWasmLoadingPlugin };
80
+ exports.library = { EnableLibraryPlugin: builtin_plugin_11.EnableLibraryPlugin };
81
81
  const builtin_plugin_12 = require("./builtin-plugin");
82
- exports.javascript = { EnableChunkLoadingPlugin: builtin_plugin_12.EnableChunkLoadingPlugin };
82
+ exports.wasm = { EnableWasmLoadingPlugin: builtin_plugin_12.EnableWasmLoadingPlugin };
83
83
  const builtin_plugin_13 = require("./builtin-plugin");
84
- exports.webworker = { WebWorkerTemplatePlugin: builtin_plugin_13.WebWorkerTemplatePlugin };
84
+ exports.javascript = { EnableChunkLoadingPlugin: builtin_plugin_13.EnableChunkLoadingPlugin };
85
85
  const builtin_plugin_14 = require("./builtin-plugin");
86
- exports.optimize = { LimitChunkCountPlugin: builtin_plugin_14.LimitChunkCountPlugin };
86
+ exports.webworker = { WebWorkerTemplatePlugin: builtin_plugin_14.WebWorkerTemplatePlugin };
87
+ const builtin_plugin_15 = require("./builtin-plugin");
88
+ exports.optimize = { LimitChunkCountPlugin: builtin_plugin_15.LimitChunkCountPlugin };
87
89
  const ModuleFederationPlugin_1 = require("./container/ModuleFederationPlugin");
88
90
  const ModuleFederationPluginV1_1 = require("./container/ModuleFederationPluginV1");
89
91
  const ContainerPlugin_1 = require("./container/ContainerPlugin");
@@ -103,19 +105,19 @@ exports.sharing = {
103
105
  SharePlugin: SharePlugin_1.SharePlugin
104
106
  };
105
107
  ///// 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, "SwcJsMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_16.SwcJsMinimizerRspackPlugin; } });
109
+ Object.defineProperty(exports, "HtmlRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_16.HtmlRspackPlugin; } });
110
110
  var builtin_plugin_17 = require("./builtin-plugin");
111
- Object.defineProperty(exports, "SwcCssMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_17.SwcCssMinimizerRspackPlugin; } });
111
+ Object.defineProperty(exports, "SwcJsMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_17.SwcJsMinimizerRspackPlugin; } });
112
112
  var builtin_plugin_18 = require("./builtin-plugin");
113
- Object.defineProperty(exports, "CopyRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_18.CopyRspackPlugin; } });
113
+ Object.defineProperty(exports, "SwcCssMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_18.SwcCssMinimizerRspackPlugin; } });
114
114
  var builtin_plugin_19 = require("./builtin-plugin");
115
- Object.defineProperty(exports, "SourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_19.SourceMapDevToolPlugin; } });
115
+ Object.defineProperty(exports, "CopyRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_19.CopyRspackPlugin; } });
116
116
  var builtin_plugin_20 = require("./builtin-plugin");
117
- Object.defineProperty(exports, "EvalSourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_20.EvalSourceMapDevToolPlugin; } });
117
+ Object.defineProperty(exports, "SourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_20.SourceMapDevToolPlugin; } });
118
118
  var builtin_plugin_21 = require("./builtin-plugin");
119
- Object.defineProperty(exports, "EvalDevToolModulePlugin", { enumerable: true, get: function () { return builtin_plugin_21.EvalDevToolModulePlugin; } });
119
+ Object.defineProperty(exports, "EvalSourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_21.EvalSourceMapDevToolPlugin; } });
120
120
  var builtin_plugin_22 = require("./builtin-plugin");
121
- Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_22.CssExtractRspackPlugin; } });
121
+ Object.defineProperty(exports, "EvalDevToolModulePlugin", { enumerable: true, get: function () { return builtin_plugin_22.EvalDevToolModulePlugin; } });
122
+ var builtin_plugin_23 = require("./builtin-plugin");
123
+ Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_23.CssExtractRspackPlugin; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "0.6.1-canary-22cb8e0-20240411041028",
3
+ "version": "0.6.1-canary-baf60a7-20240412021745",
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-canary-22cb8e0-20240411041028",
63
- "@rspack/plugin-minify": "^0.6.1-canary-22cb8e0-20240411041028"
62
+ "@rspack/core": "0.6.1-canary-baf60a7-20240412021745",
63
+ "@rspack/plugin-minify": "^0.6.1-canary-baf60a7-20240412021745"
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-canary-22cb8e0-20240411041028"
78
+ "@rspack/binding": "0.6.1-canary-baf60a7-20240412021745"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@swc/helpers": ">=0.5.1"