extension-develop 3.8.12 → 3.8.13-canary.219.4f7a8c4
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/module.cjs +89 -6
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -131512,6 +131512,10 @@ var __webpack_modules__ = {
|
|
|
131512
131512
|
const err = error;
|
|
131513
131513
|
return err?.code === 'ENOENT' || String(err?.message || '').includes('ENOENT') || String(err?.message || '').includes('not found');
|
|
131514
131514
|
}
|
|
131515
|
+
function isInstallExitFailure(error) {
|
|
131516
|
+
const message = String(error?.message || error || '');
|
|
131517
|
+
return /Install failed with exit code \d+/.test(message);
|
|
131518
|
+
}
|
|
131515
131519
|
function parseWslUncPath(value) {
|
|
131516
131520
|
const match = /^\\\\wsl(?:\.localhost)?\\([^\\]+)\\(.+)$/.exec(value);
|
|
131517
131521
|
if (!match) return null;
|
|
@@ -131571,7 +131575,7 @@ var __webpack_modules__ = {
|
|
|
131571
131575
|
});
|
|
131572
131576
|
return;
|
|
131573
131577
|
} catch (error) {
|
|
131574
|
-
if (options.fallbackNpmCommand && isMissingManagerError(error)) return void await (0, _webpack_lib_package_manager__rspack_import_5.Qt)(options.fallbackNpmCommand.command, options.fallbackNpmCommand.args, {
|
|
131578
|
+
if (options.fallbackNpmCommand && (isMissingManagerError(error) || options.allowFallbackOnFailure && isInstallExitFailure(error))) return void await (0, _webpack_lib_package_manager__rspack_import_5.Qt)(options.fallbackNpmCommand.command, options.fallbackNpmCommand.args, {
|
|
131575
131579
|
cwd: options.cwd,
|
|
131576
131580
|
stdio: 'inherit'
|
|
131577
131581
|
});
|
|
@@ -131715,7 +131719,8 @@ var __webpack_modules__ = {
|
|
|
131715
131719
|
]);
|
|
131716
131720
|
await execInstallWithFallback(execCommand, {
|
|
131717
131721
|
cwd: wslContext.useWsl ? void 0 : installBaseDir,
|
|
131718
|
-
fallbackNpmCommand
|
|
131722
|
+
fallbackNpmCommand,
|
|
131723
|
+
allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== fallbackNpmCommand
|
|
131719
131724
|
});
|
|
131720
131725
|
}
|
|
131721
131726
|
await new Promise((resolve)=>setTimeout(resolve, 500));
|
|
@@ -131731,7 +131736,8 @@ var __webpack_modules__ = {
|
|
|
131731
131736
|
]);
|
|
131732
131737
|
await execInstallWithFallback(rootCommand, {
|
|
131733
131738
|
cwd: wslContext.useWsl ? void 0 : installBaseDir,
|
|
131734
|
-
fallbackNpmCommand: rootFallbackCommand
|
|
131739
|
+
fallbackNpmCommand: rootFallbackCommand,
|
|
131740
|
+
allowFallbackOnFailure: !wslContext.useWsl && 'npm' !== pm.name && void 0 !== rootFallbackCommand
|
|
131735
131741
|
});
|
|
131736
131742
|
console.log(_messages__rspack_import_2.ys(integration));
|
|
131737
131743
|
}
|
|
@@ -133832,6 +133838,7 @@ var __webpack_modules__ = {
|
|
|
133832
133838
|
ax: ()=>downloadedProjectFolderNotFound,
|
|
133833
133839
|
dx: ()=>manifestNotFoundError,
|
|
133834
133840
|
f7: ()=>configLoadingError,
|
|
133841
|
+
fm: ()=>buildSuccessWithWarnings,
|
|
133835
133842
|
gC: ()=>unpackagingExtension,
|
|
133836
133843
|
jM: ()=>debugExtensionsToLoad,
|
|
133837
133844
|
jV: ()=>debugPreviewOutput,
|
|
@@ -133841,6 +133848,7 @@ var __webpack_modules__ = {
|
|
|
133841
133848
|
tc: ()=>invalidRemoteZip,
|
|
133842
133849
|
v_: ()=>writingTypeDefinitionsError,
|
|
133843
133850
|
vo: ()=>buildDependenciesManualInstall,
|
|
133851
|
+
wh: ()=>buildWarningsDetails,
|
|
133844
133852
|
xK: ()=>installingBuildDependencies,
|
|
133845
133853
|
yp: ()=>noCompanionExtensionsResolved,
|
|
133846
133854
|
zM: ()=>unpackagedSuccessfully
|
|
@@ -133947,7 +133955,77 @@ var __webpack_modules__ = {
|
|
|
133947
133955
|
return output;
|
|
133948
133956
|
}
|
|
133949
133957
|
function buildSuccess() {
|
|
133950
|
-
return `${getLoggingPrefix('success')}
|
|
133958
|
+
return `${getLoggingPrefix('success')} Build succeeded with no warnings. Your extension is ${pintor__rspack_import_2_default().green('ready for deployment')}.`;
|
|
133959
|
+
}
|
|
133960
|
+
function getWarningMessage(warning) {
|
|
133961
|
+
if (!warning) return '';
|
|
133962
|
+
if ('string' == typeof warning) return warning.trim();
|
|
133963
|
+
const candidates = [
|
|
133964
|
+
warning.message,
|
|
133965
|
+
warning.details,
|
|
133966
|
+
warning.reason,
|
|
133967
|
+
warning.description
|
|
133968
|
+
];
|
|
133969
|
+
for (const candidate of candidates)if ('string' == typeof candidate && candidate.trim()) return candidate.trim();
|
|
133970
|
+
return '';
|
|
133971
|
+
}
|
|
133972
|
+
function getWarningSource(warning) {
|
|
133973
|
+
if (!warning || 'string' == typeof warning) return 'bundler';
|
|
133974
|
+
const candidates = [
|
|
133975
|
+
warning.name,
|
|
133976
|
+
warning.moduleName,
|
|
133977
|
+
warning.moduleIdentifier,
|
|
133978
|
+
warning.originName,
|
|
133979
|
+
warning.pluginName
|
|
133980
|
+
];
|
|
133981
|
+
for (const candidate of candidates)if ('string' == typeof candidate && candidate.trim()) return candidate.trim();
|
|
133982
|
+
return 'bundler';
|
|
133983
|
+
}
|
|
133984
|
+
function getWarningArtifact(warning) {
|
|
133985
|
+
if (!warning || 'string' == typeof warning) return '';
|
|
133986
|
+
const candidates = [
|
|
133987
|
+
warning.file,
|
|
133988
|
+
warning.chunkName,
|
|
133989
|
+
warning.moduleName
|
|
133990
|
+
];
|
|
133991
|
+
for (const candidate of candidates)if ('string' == typeof candidate && candidate.trim()) return candidate.trim();
|
|
133992
|
+
return '';
|
|
133993
|
+
}
|
|
133994
|
+
function classifyWarning(message, source) {
|
|
133995
|
+
const haystack = `${message} ${source}`.toLowerCase();
|
|
133996
|
+
if (haystack.includes('performance') || haystack.includes('asset size') || haystack.includes('entrypoint size') || haystack.includes('exceeds the recommended size') || haystack.includes('hints')) return 'Performance';
|
|
133997
|
+
if (haystack.includes('deprecat') || haystack.includes('[dep_') || haystack.includes('legacy')) return 'Deprecation';
|
|
133998
|
+
if (haystack.includes('invalid') || haystack.includes('unknown option') || haystack.includes('configuration') || haystack.includes('schema')) return 'Configuration';
|
|
133999
|
+
if (haystack.includes('manifest') || haystack.includes('browser') || haystack.includes('target')) return 'Compatibility';
|
|
134000
|
+
if (haystack.includes('runtime') || haystack.includes('will fail') || haystack.includes('cannot resolve') || haystack.includes('service_worker')) return 'Runtime-risk';
|
|
134001
|
+
return 'Warning';
|
|
134002
|
+
}
|
|
134003
|
+
function suggestedActionForWarning(category) {
|
|
134004
|
+
if ('Performance' === category) return 'Split optional features and lazy-load heavy paths. Tune thresholds only if large assets are intentional.';
|
|
134005
|
+
if ('Deprecation' === category) return 'Move to the supported API/plugin path to avoid breakage in future updates.';
|
|
134006
|
+
if ('Configuration' === category) return 'Review extension and bundler config keys, then remove or rename invalid options.';
|
|
134007
|
+
if ('Compatibility' === category) return 'Verify browser target and manifest compatibility for this build.';
|
|
134008
|
+
if ('Runtime-risk' === category) return 'Address this warning before release; it may fail or degrade at runtime.';
|
|
134009
|
+
return 'Re-run with verbose output to inspect warning details and apply targeted fixes.';
|
|
134010
|
+
}
|
|
134011
|
+
function buildSuccessWithWarnings(warningCount) {
|
|
134012
|
+
return `${getLoggingPrefix('warn')} Build succeeded with ${warningCount} warning(s). Your extension is ${pintor__rspack_import_2_default().green('ready for deployment')}.`;
|
|
134013
|
+
}
|
|
134014
|
+
function buildWarningsDetails(warnings) {
|
|
134015
|
+
if (!Array.isArray(warnings) || 0 === warnings.length) return '';
|
|
134016
|
+
const lines = [];
|
|
134017
|
+
warnings.forEach((warning, index)=>{
|
|
134018
|
+
const message = getWarningMessage(warning);
|
|
134019
|
+
const source = getWarningSource(warning);
|
|
134020
|
+
const artifact = getWarningArtifact(warning);
|
|
134021
|
+
const category = classifyWarning(message, source);
|
|
134022
|
+
const action = suggestedActionForWarning(category);
|
|
134023
|
+
if (!message) return void lines.push(`- Warning ${index + 1}: details were suppressed by tool output.`, ` Source: ${source}`, " Action: Re-run with EXTENSION_VERBOSE=1 to inspect full warning messages.");
|
|
134024
|
+
const oneLine = message.replace(/\s+/g, ' ').trim();
|
|
134025
|
+
const artifactSuffix = artifact ? ` (${artifact})` : '';
|
|
134026
|
+
lines.push(`- ${category}: ${oneLine}${artifactSuffix}`, ` Source: ${source}`, ` Action: ${action}`);
|
|
134027
|
+
});
|
|
134028
|
+
return lines.join('\n');
|
|
133951
134029
|
}
|
|
133952
134030
|
function fetchingProjectPath(owner, project) {
|
|
133953
134031
|
return fmt.block('Fetching project', [
|
|
@@ -135028,7 +135106,7 @@ var __webpack_modules__ = {
|
|
|
135028
135106
|
},
|
|
135029
135107
|
"./package.json" (module) {
|
|
135030
135108
|
"use strict";
|
|
135031
|
-
module.exports = JSON.parse('{"rE":"3.8.
|
|
135109
|
+
module.exports = JSON.parse('{"rE":"3.8.13-canary.219.4f7a8c4","El":{"@rspack/core":"^1.7.5","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.19.0"}}');
|
|
135032
135110
|
}
|
|
135033
135111
|
};
|
|
135034
135112
|
var __webpack_module_cache__ = {};
|
|
@@ -135990,12 +136068,17 @@ var __webpack_exports__ = {};
|
|
|
135990
136068
|
process.exit(1);
|
|
135991
136069
|
} else {
|
|
135992
136070
|
const info = stats?.toJson({
|
|
136071
|
+
all: false,
|
|
135993
136072
|
assets: true,
|
|
135994
136073
|
warnings: true,
|
|
135995
136074
|
errors: true
|
|
135996
136075
|
});
|
|
135997
136076
|
summary = getBuildSummary(browser, info);
|
|
135998
|
-
|
|
136077
|
+
if (summary.warnings_count > 0) {
|
|
136078
|
+
console.log(messages.fm(summary.warnings_count));
|
|
136079
|
+
const warningDetails = messages.wh(info?.warnings || []);
|
|
136080
|
+
if (warningDetails) console.log(`\n${warningDetails}`);
|
|
136081
|
+
} else console.log(messages.Cf());
|
|
135999
136082
|
resolve();
|
|
136000
136083
|
}
|
|
136001
136084
|
});
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"webpack/webpack-lib/build-dependencies.json"
|
|
25
25
|
],
|
|
26
26
|
"name": "extension-develop",
|
|
27
|
-
"version": "3.8.
|
|
27
|
+
"version": "3.8.13-canary.219.4f7a8c4",
|
|
28
28
|
"description": "Develop, build, preview, and package Extension.js projects.",
|
|
29
29
|
"author": {
|
|
30
30
|
"name": "Cezar Augusto",
|