extension-develop 3.8.13 → 3.8.16
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/535.cjs +1 -1
- package/dist/928.cjs +7 -2
- package/dist/module.cjs +14 -8
- package/package.json +1 -1
package/dist/535.cjs
CHANGED
package/dist/928.cjs
CHANGED
|
@@ -109,6 +109,9 @@ exports.modules = {
|
|
|
109
109
|
`Try enabling verbose logs with ${external_pintor_default().brightBlue('EXTENSION_VERBOSE=1')} or review your extension config.`
|
|
110
110
|
].join('\n');
|
|
111
111
|
}
|
|
112
|
+
function spacerLine() {
|
|
113
|
+
return ' ';
|
|
114
|
+
}
|
|
112
115
|
var external_crypto_ = __webpack_require__("crypto");
|
|
113
116
|
var external_net_ = __webpack_require__("net");
|
|
114
117
|
var shared_utils = __webpack_require__("./webpack/plugin-browsers/browsers-lib/shared-utils.ts");
|
|
@@ -362,7 +365,7 @@ exports.modules = {
|
|
|
362
365
|
async function dev_server_devServer(projectStructure, devOptions) {
|
|
363
366
|
process.env.EXTENSION_BROWSER_LAUNCH_ENABLED = devOptions.noBrowser ? '0' : '1';
|
|
364
367
|
const { manifestPath, packageJsonPath } = projectStructure;
|
|
365
|
-
|
|
368
|
+
external_path_.dirname(manifestPath);
|
|
366
369
|
const packageJsonDir = external_path_.dirname(packageJsonPath);
|
|
367
370
|
const commandConfig = await (0, config_loader.eY)(packageJsonDir, 'dev');
|
|
368
371
|
const browserConfig = await (0, config_loader.xY)(packageJsonDir, devOptions.browser);
|
|
@@ -402,7 +405,7 @@ exports.modules = {
|
|
|
402
405
|
path: external_path_.join(packageJsonDir, 'dist', devOptions.browser)
|
|
403
406
|
}
|
|
404
407
|
});
|
|
405
|
-
const customWebpackConfig = await (0, config_loader.Tu)(
|
|
408
|
+
const customWebpackConfig = await (0, config_loader.Tu)(packageJsonDir);
|
|
406
409
|
const finalConfig = customWebpackConfig(baseConfig);
|
|
407
410
|
const compilerConfig = (0, external_webpack_merge_.merge)(finalConfig, {});
|
|
408
411
|
compilerConfig.devServer = {
|
|
@@ -478,12 +481,14 @@ exports.modules = {
|
|
|
478
481
|
}, START_TIMEOUT_MS);
|
|
479
482
|
await devServer.start();
|
|
480
483
|
if (startTimeout) clearTimeout(startTimeout);
|
|
484
|
+
console.log(spacerLine());
|
|
481
485
|
console.log(messages_ready('development', devOptions.browser));
|
|
482
486
|
if (devOptions.noBrowser) console.log(browserRunnerDisabled({
|
|
483
487
|
browser: String(devOptions.browser || 'chromium'),
|
|
484
488
|
manifestPath,
|
|
485
489
|
readyPath: metadata.readyPath
|
|
486
490
|
}));
|
|
491
|
+
console.log(spacerLine());
|
|
487
492
|
} catch (error) {
|
|
488
493
|
if (startTimeout) clearTimeout(startTimeout);
|
|
489
494
|
metadata.writeError('dev_server_start_failed', error instanceof Error ? error.message : String(error));
|
package/dist/module.cjs
CHANGED
|
@@ -128261,7 +128261,7 @@ var __webpack_modules__ = {
|
|
|
128261
128261
|
return lines.join('\n');
|
|
128262
128262
|
}
|
|
128263
128263
|
function emptyLine() {
|
|
128264
|
-
return '';
|
|
128264
|
+
return ' ';
|
|
128265
128265
|
}
|
|
128266
128266
|
function separatorLine() {
|
|
128267
128267
|
return ''.padEnd(80, '=');
|
|
@@ -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
|
}
|
|
@@ -135100,7 +135106,7 @@ var __webpack_modules__ = {
|
|
|
135100
135106
|
},
|
|
135101
135107
|
"./package.json" (module) {
|
|
135102
135108
|
"use strict";
|
|
135103
|
-
module.exports = JSON.parse('{"rE":"3.8.
|
|
135109
|
+
module.exports = JSON.parse('{"rE":"3.8.16","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"}}');
|
|
135104
135110
|
}
|
|
135105
135111
|
};
|
|
135106
135112
|
var __webpack_module_cache__ = {};
|
|
@@ -136007,7 +136013,7 @@ var __webpack_exports__ = {};
|
|
|
136007
136013
|
]);
|
|
136008
136014
|
const debug = isAuthor;
|
|
136009
136015
|
if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, manifestDir);
|
|
136010
|
-
const commandConfig = await (0, config_loader.eY)(
|
|
136016
|
+
const commandConfig = await (0, config_loader.eY)(packageJsonDir, 'build');
|
|
136011
136017
|
const specialFoldersData = (0, get_data.H)(packageJsonDir);
|
|
136012
136018
|
const distPath = (0, webpack_lib_paths.q4)(packageJsonDir, browser);
|
|
136013
136019
|
if (debug) {
|
|
@@ -136033,7 +136039,7 @@ var __webpack_exports__ = {};
|
|
|
136033
136039
|
}
|
|
136034
136040
|
});
|
|
136035
136041
|
const allPluginsButBrowserRunners = baseConfig.plugins?.filter((plugin)=>plugin?.constructor.name !== 'plugin-browsers');
|
|
136036
|
-
const userExtensionConfig = await (0, config_loader.Tu)(
|
|
136042
|
+
const userExtensionConfig = await (0, config_loader.Tu)(packageJsonDir);
|
|
136037
136043
|
const userConfig = userExtensionConfig({
|
|
136038
136044
|
...baseConfig,
|
|
136039
136045
|
plugins: allPluginsButBrowserRunners
|
|
@@ -136300,8 +136306,8 @@ var __webpack_exports__ = {};
|
|
|
136300
136306
|
async function extensionPreview(pathOrRemoteUrl, previewOptions) {
|
|
136301
136307
|
const projectStructure = await getProjectStructure(pathOrRemoteUrl);
|
|
136302
136308
|
const debug = 'true' === process.env.EXTENSION_AUTHOR_MODE;
|
|
136303
|
-
if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, external_path_.dirname(projectStructure.manifestPath));
|
|
136304
136309
|
const { manifestDir, packageJsonDir } = (0, webpack_lib_paths.fu)(projectStructure);
|
|
136310
|
+
if (projectStructure.packageJsonPath) assertNoManagedDependencyConflicts(projectStructure.packageJsonPath, packageJsonDir);
|
|
136305
136311
|
const browser = (0, webpack_lib_paths.YN)(previewOptions.browser || 'chrome', previewOptions.chromiumBinary, previewOptions.geckoBinary || previewOptions.firefoxBinary);
|
|
136306
136312
|
const outputPath = (0, webpack_lib_paths.u2)(projectStructure, browser, previewOptions.outputPath);
|
|
136307
136313
|
const distPath = (0, webpack_lib_paths.q4)(packageJsonDir, browser);
|
package/package.json
CHANGED