@rspack/core 0.7.4-canary-de24e64-20240614130907 → 0.7.4-canary-bdc2037-20240616004950
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/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +11 -0
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.js +13 -0
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/index.js +1 -0
- package/dist/config/zod.d.ts +2 -2
- package/dist/exports.d.ts +2 -0
- package/dist/exports.js +9 -6
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BuiltinPluginName, RawLightningCssMinimizerRspackPluginOptions } from "@rspack/binding";
|
|
2
|
+
export type LightningCssMinimizerRspackPluginOptions = Partial<RawLightningCssMinimizerRspackPluginOptions>;
|
|
3
|
+
export declare const LightningCssMinimizerRspackPlugin: {
|
|
4
|
+
new (options?: Partial<RawLightningCssMinimizerRspackPluginOptions> | undefined): {
|
|
5
|
+
name: BuiltinPluginName;
|
|
6
|
+
_options: RawLightningCssMinimizerRspackPluginOptions;
|
|
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,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LightningCssMinimizerRspackPlugin = void 0;
|
|
4
|
+
const binding_1 = require("@rspack/binding");
|
|
5
|
+
const base_1 = require("./base");
|
|
6
|
+
exports.LightningCssMinimizerRspackPlugin = (0, base_1.create)(binding_1.BuiltinPluginName.LightningCssMinimizerRspackPlugin, (options) => {
|
|
7
|
+
return {
|
|
8
|
+
errorRecovery: options?.errorRecovery ?? false,
|
|
9
|
+
unusedSymbols: options?.unusedSymbols ?? [],
|
|
10
|
+
removeUnusedLocalIdents: options?.removeUnusedLocalIdents ?? true,
|
|
11
|
+
browserslist: options?.browserslist ?? ["defaults"]
|
|
12
|
+
};
|
|
13
|
+
});
|
|
@@ -57,6 +57,7 @@ export * from "./SizeLimitsPlugin";
|
|
|
57
57
|
export * from "./SourceMapDevToolPlugin";
|
|
58
58
|
export * from "./SplitChunksPlugin";
|
|
59
59
|
export * from "./SwcCssMinimizerPlugin";
|
|
60
|
+
export * from "./LightningCssMiminizerRspackPlugin";
|
|
60
61
|
export * from "./SwcJsMinimizerPlugin";
|
|
61
62
|
export * from "./WarnCaseSensitiveModulesPlugin";
|
|
62
63
|
export * from "./WebWorkerTemplatePlugin";
|
|
@@ -75,6 +75,7 @@ __exportStar(require("./SizeLimitsPlugin"), exports);
|
|
|
75
75
|
__exportStar(require("./SourceMapDevToolPlugin"), exports);
|
|
76
76
|
__exportStar(require("./SplitChunksPlugin"), exports);
|
|
77
77
|
__exportStar(require("./SwcCssMinimizerPlugin"), exports);
|
|
78
|
+
__exportStar(require("./LightningCssMiminizerRspackPlugin"), exports);
|
|
78
79
|
__exportStar(require("./SwcJsMinimizerPlugin"), exports);
|
|
79
80
|
__exportStar(require("./WarnCaseSensitiveModulesPlugin"), exports);
|
|
80
81
|
__exportStar(require("./WebWorkerTemplatePlugin"), exports);
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -7532,7 +7532,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7532
7532
|
templateLiteral?: boolean | undefined;
|
|
7533
7533
|
} | undefined;
|
|
7534
7534
|
} | undefined;
|
|
7535
|
-
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "
|
|
7535
|
+
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "browserslist" | "webworker" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "browserslist" | "webworker" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
7536
7536
|
mode?: "none" | "development" | "production" | undefined;
|
|
7537
7537
|
experiments?: {
|
|
7538
7538
|
lazyCompilation?: boolean | {
|
|
@@ -8017,7 +8017,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
8017
8017
|
templateLiteral?: boolean | undefined;
|
|
8018
8018
|
} | undefined;
|
|
8019
8019
|
} | undefined;
|
|
8020
|
-
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "
|
|
8020
|
+
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "browserslist" | "webworker" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | "browserslist" | "webworker" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
8021
8021
|
mode?: "none" | "development" | "production" | undefined;
|
|
8022
8022
|
experiments?: {
|
|
8023
8023
|
lazyCompilation?: boolean | {
|
package/dist/exports.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare const sharing: {
|
|
|
128
128
|
};
|
|
129
129
|
export type { HtmlRspackPluginOptions } from "./builtin-plugin";
|
|
130
130
|
export type { SwcJsMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
131
|
+
export type { LightningCssMinimizerRspackPluginOptions } from "./builtin-plugin";
|
|
131
132
|
export type { CopyRspackPluginOptions } from "./builtin-plugin";
|
|
132
133
|
export type { SourceMapDevToolPluginOptions } from "./builtin-plugin";
|
|
133
134
|
export type { EvalDevToolModulePluginOptions } from "./builtin-plugin";
|
|
@@ -135,6 +136,7 @@ export type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } fro
|
|
|
135
136
|
export { HtmlRspackPlugin } from "./builtin-plugin";
|
|
136
137
|
export { SwcJsMinimizerRspackPlugin } from "./builtin-plugin";
|
|
137
138
|
export { SwcCssMinimizerRspackPlugin } from "./builtin-plugin";
|
|
139
|
+
export { LightningCssMinimizerRspackPlugin } from "./builtin-plugin";
|
|
138
140
|
export { CopyRspackPlugin } from "./builtin-plugin";
|
|
139
141
|
export { SourceMapDevToolPlugin } from "./builtin-plugin";
|
|
140
142
|
export { EvalSourceMapDevToolPlugin } from "./builtin-plugin";
|
package/dist/exports.js
CHANGED
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.EvalDevToolModulePlugin = exports.EvalSourceMapDevToolPlugin = exports.SourceMapDevToolPlugin = exports.CopyRspackPlugin = exports.LightningCssMinimizerRspackPlugin = 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.LoaderTargetPlugin = exports.LoaderOptionsPlugin = exports.EnvironmentPlugin = exports.HotModuleReplacementPlugin = exports.ExternalsPlugin = exports.DynamicEntryPlugin = exports.EntryPlugin = exports.ProgressPlugin = exports.DefinePlugin = exports.ProvidePlugin = exports.IgnorePlugin = exports.BannerPlugin = exports.experimental_registerGlobalTrace = exports.experimental_cleanupGlobalTrace = exports.EntryOptionPlugin = exports.util = exports.config = exports.sources = exports.WebpackError = exports.Template = exports.ModuleFilenameHelpers = exports.Stats = exports.RuntimeGlobals = exports.NormalModule = exports.MultiStats = exports.WebpackOptionsApply = exports.RspackOptionsApply = exports.MultiCompiler = exports.Compiler = exports.Compilation = exports.version = exports.rspackVersion = void 0;
|
|
30
|
+
exports.CssExtractRspackPlugin = void 0;
|
|
30
31
|
const { version: rspackVersion, webpackVersion } = require("../package.json");
|
|
31
32
|
exports.rspackVersion = rspackVersion;
|
|
32
33
|
exports.version = webpackVersion;
|
|
@@ -148,12 +149,14 @@ Object.defineProperty(exports, "SwcJsMinimizerRspackPlugin", { enumerable: true,
|
|
|
148
149
|
var builtin_plugin_21 = require("./builtin-plugin");
|
|
149
150
|
Object.defineProperty(exports, "SwcCssMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_21.SwcCssMinimizerRspackPlugin; } });
|
|
150
151
|
var builtin_plugin_22 = require("./builtin-plugin");
|
|
151
|
-
Object.defineProperty(exports, "
|
|
152
|
+
Object.defineProperty(exports, "LightningCssMinimizerRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_22.LightningCssMinimizerRspackPlugin; } });
|
|
152
153
|
var builtin_plugin_23 = require("./builtin-plugin");
|
|
153
|
-
Object.defineProperty(exports, "
|
|
154
|
+
Object.defineProperty(exports, "CopyRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_23.CopyRspackPlugin; } });
|
|
154
155
|
var builtin_plugin_24 = require("./builtin-plugin");
|
|
155
|
-
Object.defineProperty(exports, "
|
|
156
|
+
Object.defineProperty(exports, "SourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_24.SourceMapDevToolPlugin; } });
|
|
156
157
|
var builtin_plugin_25 = require("./builtin-plugin");
|
|
157
|
-
Object.defineProperty(exports, "
|
|
158
|
+
Object.defineProperty(exports, "EvalSourceMapDevToolPlugin", { enumerable: true, get: function () { return builtin_plugin_25.EvalSourceMapDevToolPlugin; } });
|
|
158
159
|
var builtin_plugin_26 = require("./builtin-plugin");
|
|
159
|
-
Object.defineProperty(exports, "
|
|
160
|
+
Object.defineProperty(exports, "EvalDevToolModulePlugin", { enumerable: true, get: function () { return builtin_plugin_26.EvalDevToolModulePlugin; } });
|
|
161
|
+
var builtin_plugin_27 = require("./builtin-plugin");
|
|
162
|
+
Object.defineProperty(exports, "CssExtractRspackPlugin", { enumerable: true, get: function () { return builtin_plugin_27.CssExtractRspackPlugin; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.7.4-canary-
|
|
3
|
+
"version": "0.7.4-canary-bdc2037-20240616004950",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
"watchpack": "^2.4.0",
|
|
75
75
|
"zod": "^3.21.4",
|
|
76
76
|
"zod-validation-error": "1.3.1",
|
|
77
|
-
"@rspack/plugin-minify": "^0.7.4-canary-
|
|
78
|
-
"@rspack/core": "0.7.4-canary-
|
|
77
|
+
"@rspack/plugin-minify": "^0.7.4-canary-bdc2037-20240616004950",
|
|
78
|
+
"@rspack/core": "0.7.4-canary-bdc2037-20240616004950"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@module-federation/runtime-tools": "0.1.6",
|
|
82
82
|
"caniuse-lite": "^1.0.30001616",
|
|
83
83
|
"tapable": "2.2.1",
|
|
84
84
|
"webpack-sources": "3.2.3",
|
|
85
|
-
"@rspack/binding": "0.7.4-canary-
|
|
85
|
+
"@rspack/binding": "0.7.4-canary-bdc2037-20240616004950"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@swc/helpers": ">=0.5.1"
|