@rspack/core 0.5.9-canary-4ca6a92-20240408091245 → 0.5.9-canary-7e0144b-20240408115202

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,10 @@
1
+ import { BuiltinPluginName } from "@rspack/binding";
2
+ export declare const APIPlugin: {
3
+ new (): {
4
+ name: BuiltinPluginName;
5
+ _options: void;
6
+ 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;
7
+ raw(): import("@rspack/binding").BuiltinPlugin;
8
+ apply(compiler: import("../Compiler").Compiler): void;
9
+ };
10
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APIPlugin = void 0;
4
+ const binding_1 = require("@rspack/binding");
5
+ const base_1 = require("./base");
6
+ exports.APIPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.APIPlugin, () => { });
@@ -47,6 +47,7 @@ export * from "./MangleExportsPlugin";
47
47
  export * from "./BundlerInfoRspackPlugin";
48
48
  export * from "./ModuleConcatenationPlugin";
49
49
  export * from "./CssModulesPlugin";
50
+ export * from "./APIPlugin";
50
51
  export * from "./HtmlRspackPlugin";
51
52
  export * from "./CopyRspackPlugin";
52
53
  export * from "./SwcJsMinimizerPlugin";
@@ -65,6 +65,7 @@ __exportStar(require("./MangleExportsPlugin"), exports);
65
65
  __exportStar(require("./BundlerInfoRspackPlugin"), exports);
66
66
  __exportStar(require("./ModuleConcatenationPlugin"), exports);
67
67
  __exportStar(require("./CssModulesPlugin"), exports);
68
+ __exportStar(require("./APIPlugin"), exports);
68
69
  __exportStar(require("./HtmlRspackPlugin"), exports);
69
70
  __exportStar(require("./CopyRspackPlugin"), exports);
70
71
  __exportStar(require("./SwcJsMinimizerPlugin"), exports);
@@ -134,6 +134,7 @@ class RspackOptionsApply {
134
134
  new builtin_plugin_1.BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler);
135
135
  }
136
136
  new builtin_plugin_1.InferAsyncModulesPlugin().apply(compiler);
137
+ new builtin_plugin_1.APIPlugin().apply(compiler);
137
138
  new builtin_plugin_1.DataUriPlugin().apply(compiler);
138
139
  new builtin_plugin_1.FileUriPlugin().apply(compiler);
139
140
  new builtin_plugin_1.EnsureChunkConditionsPlugin().apply(compiler);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "0.5.9-canary-4ca6a92-20240408091245",
3
+ "version": "0.5.9-canary-7e0144b-20240408115202",
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/plugin-minify": "^0.5.9-canary-4ca6a92-20240408091245",
63
- "@rspack/core": "0.5.9-canary-4ca6a92-20240408091245"
62
+ "@rspack/plugin-minify": "^0.5.9-canary-7e0144b-20240408115202",
63
+ "@rspack/core": "0.5.9-canary-7e0144b-20240408115202"
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.5.9-canary-4ca6a92-20240408091245"
78
+ "@rspack/binding": "0.5.9-canary-7e0144b-20240408115202"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@swc/helpers": ">=0.5.1"