extension-develop 4.1.31 → 4.1.32
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/README.md +2 -0
- package/dist/105~0.mjs +1 -1
- package/dist/177~0.mjs +87 -19
- package/dist/273~0.mjs +13 -3
- package/dist/363~0.mjs +1874 -0
- package/dist/{896~0.mjs → 469~0.mjs} +116 -586
- package/dist/519~0.mjs +21 -8
- package/dist/616~0.mjs +1 -1
- package/dist/771~0.mjs +103 -0
- package/dist/832~0.mjs +229 -463
- package/dist/840~0.mjs +1189 -54
- package/dist/846~0.mjs +453 -0
- package/dist/852~0.mjs +8 -6
- package/dist/bridge.mjs +3 -2
- package/dist/command-preview.d.ts +1 -0
- package/dist/contract/codes.json +39 -29
- package/dist/contract/envelope.schema.json +16 -0
- package/dist/contract/golden.build.compile.json +20 -3
- package/dist/contract/golden.eval.csp-blocks-eval.page.json +15 -0
- package/dist/css-parse-guard-loader.mjs +3 -1
- package/dist/dead-css-url-loader.mjs +129 -13
- package/dist/dev-server/cleanup.d.ts +1 -1
- package/dist/dev-server/lifecycle-stream.d.ts +14 -3
- package/dist/dev-server/session-start-prune.d.ts +13 -0
- package/dist/dev-server~0.mjs +91 -14
- package/dist/ensure-hmr-for-scripts.js +4 -8
- package/dist/ensure-hmr-for-scripts.mjs +4 -8
- package/dist/extension-js-devtools/build-stamp.json +2 -2
- package/dist/extension-js-theme/build-stamp.json +2 -2
- package/dist/feature-scripts-content-script-wrapper.js +7 -4
- package/dist/feature-scripts-content-script-wrapper.mjs +7 -4
- package/dist/lib/build-summary.d.ts +4 -1
- package/dist/lib/coded-warnings.d.ts +3 -0
- package/dist/lib/compilation-diagnostics.d.ts +23 -0
- package/dist/lib/config-loader.d.ts +2 -2
- package/dist/lib/config-resolved-plugin.d.ts +3 -2
- package/dist/lib/corepack-registry.d.ts +3 -0
- package/dist/lib/diagnostic-code.d.ts +6 -0
- package/dist/lib/merge-options.d.ts +1 -0
- package/dist/lib/messages.d.ts +4 -1
- package/dist/lib/messaging.d.ts +12 -4
- package/dist/lib/output-files.d.ts +11 -0
- package/dist/lib/package-manager.d.ts +2 -2
- package/dist/module.mjs +2 -1
- package/dist/plugin-browsers/index.d.ts +1 -0
- package/dist/plugin-compatibility/compatibility-lib/free-browser-references.d.ts +9 -0
- package/dist/plugin-css/css-lib/dead-url-refs.d.ts +5 -1
- package/dist/plugin-css/css-lib/inline-content-script-css.d.ts +4 -2
- package/dist/plugin-css/css-lib/line-rewrite-source-map.d.ts +8 -0
- package/dist/plugin-css/dead-css-url-loader.d.ts +0 -2
- package/dist/plugin-css/public-css-url-loader.d.ts +8 -3
- package/dist/plugin-playwright/index.d.ts +9 -4
- package/dist/plugin-reload/classify-reload.d.ts +2 -0
- package/dist/plugin-reload/messages.d.ts +1 -0
- package/dist/plugin-reload/reload-lib/dev-content-scripts.d.ts +4 -0
- package/dist/plugin-reload/steps/prune-unreachable-chunks.d.ts +5 -0
- package/dist/plugin-special-folders/messages.d.ts +1 -1
- package/dist/plugin-special-folders/prune-removed-public-files.d.ts +7 -0
- package/dist/plugin-static-assets/check-namespace-imports.d.ts +4 -0
- package/dist/plugin-static-assets/static-assets-lib/asset-output-name.d.ts +8 -0
- package/dist/plugin-static-assets/static-assets-lib/messages.d.ts +1 -0
- package/dist/plugin-web-extension/feature-html/html-lib/utils.d.ts +2 -1
- package/dist/plugin-web-extension/feature-icons/messages.d.ts +1 -4
- package/dist/plugin-web-extension/feature-locales/get-locales.d.ts +2 -0
- package/dist/plugin-web-extension/feature-locales/messages.d.ts +3 -1
- package/dist/plugin-web-extension/feature-locales/validation.d.ts +1 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-lib/filter-keys-safari.d.ts +1 -0
- package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +1 -0
- package/dist/plugin-web-extension/feature-manifest/messages.d.ts +1 -0
- package/dist/plugin-web-extension/feature-scripts/index.d.ts +2 -0
- package/dist/plugin-web-extension/feature-scripts/messages.d.ts +4 -3
- package/dist/plugin-web-extension/feature-scripts/scripts-lib/load-time-constants.d.ts +11 -0
- package/dist/plugin-web-extension/feature-scripts/steps/trace-runtime-loaded-files.d.ts +4 -0
- package/dist/plugin-web-extension/feature-scripts/steps/warn-missing-build-constants.d.ts +24 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/declared-pages.d.ts +2 -0
- package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/resolve-war.d.ts +5 -0
- package/dist/plugin-web-extension/index.d.ts +1 -0
- package/dist/plugin-web-extension/shared/classic-concat.d.ts +1 -0
- package/dist/plugin-web-extension/shared/compilation-issues.d.ts +1 -1
- package/dist/preprocessor-passthrough-loader.mjs +3 -1
- package/dist/public-css-url-loader.mjs +1 -1
- package/dist/rspack-config~0.mjs +4925 -5885
- package/dist/stats-handler~0.mjs +12 -4
- package/dist/types.d.ts +19 -2
- package/dist/zip~0.mjs +20 -2
- package/package.json +4 -4
- package/dist/300~0.mjs +0 -394
- package/dist/747~0.mjs +0 -90
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { type Compilation } from '@rspack/core';
|
|
2
|
+
export declare function validateUserDeclaredWAR(compilation: Compilation, manifest: unknown, browser?: string): void;
|
|
3
|
+
export declare function declaredResourceSource(manifestPath: string, projectPath: string | undefined, res: string): {
|
|
4
|
+
source: string;
|
|
5
|
+
output: string;
|
|
6
|
+
} | undefined;
|
|
2
7
|
export declare function resolveUserDeclaredWAR(compilation: Compilation, manifestPath: string, manifest: unknown, browser?: string): {
|
|
3
8
|
v2: Set<string>;
|
|
4
9
|
v3: {
|
|
@@ -5,6 +5,7 @@ export declare class WebExtensionPlugin {
|
|
|
5
5
|
readonly manifestPath: string;
|
|
6
6
|
readonly browser: DevOptions['browser'];
|
|
7
7
|
readonly devSession?: boolean;
|
|
8
|
+
readonly define?: Record<string, unknown>;
|
|
8
9
|
constructor(options: PluginInterface);
|
|
9
10
|
apply(compiler: Compiler): void;
|
|
10
11
|
}
|
|
@@ -3,4 +3,4 @@ export type IssueType = 'error' | 'warning';
|
|
|
3
3
|
export declare function createIssue(compiler: Compiler, message: string, type?: IssueType): Error & {
|
|
4
4
|
name?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function reportToCompilation(compilation: Compilation, compiler: Compiler, message: string, type?: IssueType, file?: string): void;
|
|
6
|
+
export declare function reportToCompilation(compilation: Compilation, compiler: Compiler, message: string, type?: IssueType, file?: string, name?: string): void;
|
|
@@ -4,7 +4,9 @@ import * as __rspack_external_node_path_806ed179 from "node:path";
|
|
|
4
4
|
function preprocessorPassthroughLoader(source) {
|
|
5
5
|
const ext = __rspack_external_node_path_806ed179.extname(this.resourcePath || '').toLowerCase();
|
|
6
6
|
const tool = '.less' === ext ? 'less' : 'sass';
|
|
7
|
-
this.emitWarning(new Error(preprocessorShippedUncompiled(this.resourcePath, tool))
|
|
7
|
+
this.emitWarning(Object.assign(new Error(preprocessorShippedUncompiled(this.resourcePath, tool)), {
|
|
8
|
+
name: 'CssPreprocessorMissing'
|
|
9
|
+
}));
|
|
8
10
|
return source;
|
|
9
11
|
}
|
|
10
12
|
export default preprocessorPassthroughLoader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __extjsCreateRequire } from "node:module"; const require = __extjsCreateRequire(import.meta.url);
|
|
2
|
-
export { PUBLIC_ROOT_SCHEME, default, keepPublicRootRefs
|
|
2
|
+
export { PUBLIC_ROOT_SCHEME, default, keepPublicRootRefs } from "./177~0.mjs";
|