extension-develop 3.8.5 → 3.8.7-canary.198.2bb934f

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 CHANGED
@@ -8090,7 +8090,8 @@ Set background.noDynamicEntryWarning to true to disable this warning.
8090
8090
  this.refreshContentScriptSourceDependencyPaths(stats.compilation);
8091
8091
  const pendingReason = this.ctx.getPendingReloadReason();
8092
8092
  const contentScriptEmitted = this.didEmitContentScripts(stats);
8093
- const reason = pendingReason || (contentScriptEmitted ? 'content' : void 0);
8093
+ const reason = pendingReason || (this.hasCompletedSuccessfulBuild && contentScriptEmitted ? 'content' : void 0);
8094
+ this.hasCompletedSuccessfulBuild = true;
8094
8095
  if (!reason) return;
8095
8096
  this.ctx.clearPendingReloadReason();
8096
8097
  const ctrl = this.ctx.getController();
@@ -8191,10 +8192,12 @@ Set background.noDynamicEntryWarning to true to disable this warning.
8191
8192
  chromium_hard_reload_define_property(this, "ctx", void 0);
8192
8193
  chromium_hard_reload_define_property(this, "logger", void 0);
8193
8194
  chromium_hard_reload_define_property(this, "warnedDevMode", void 0);
8195
+ chromium_hard_reload_define_property(this, "hasCompletedSuccessfulBuild", void 0);
8194
8196
  chromium_hard_reload_define_property(this, "serviceWorkerSourceDependencyPaths", void 0);
8195
8197
  chromium_hard_reload_define_property(this, "contentScriptSourceDependencyPaths", void 0);
8196
8198
  this.options = options;
8197
8199
  this.ctx = ctx;
8200
+ this.hasCompletedSuccessfulBuild = false;
8198
8201
  this.serviceWorkerSourceDependencyPaths = new Set();
8199
8202
  this.contentScriptSourceDependencyPaths = new Set();
8200
8203
  }
@@ -10227,7 +10230,7 @@ Set background.noDynamicEntryWarning to true to disable this warning.
10227
10230
  projectRoot: packageJsonDir,
10228
10231
  config: devOptions.extensions
10229
10232
  });
10230
- const unpackedExtensionDirsToLoad = (0, extensions_to_load.n)(external_path_.resolve(__dirname, '..'), devOptions.mode, devOptions.browser, primaryExtensionOutputDir, companionUnpackedExtensionDirs);
10233
+ const unpackedExtensionDirsToLoad = (0, extensions_to_load.n)(external_path_.resolve(__dirname, '..'), devOptions.mode, devOptions.browser, primaryExtensionOutputDir, companionUnpackedExtensionDirs, manifestPath);
10231
10234
  const debug = 'true' === process.env.EXTENSION_AUTHOR_MODE;
10232
10235
  const transpilePackageDirs = resolveTranspilePackageDirs(packageJsonDir, devOptions.transpilePackages);
10233
10236
  if (debug) {
package/dist/module.cjs CHANGED
@@ -133438,7 +133438,7 @@ var __webpack_modules__ = {
133438
133438
  if (fs__rspack_import_0.existsSync(candidate)) return candidate;
133439
133439
  }
133440
133440
  }
133441
- function computeExtensionsToLoad(baseDir, mode, browser, userExtensionOutputPath, extraExtensionDirs = []) {
133441
+ function computeExtensionsToLoad(baseDir, mode, browser, userExtensionOutputPath, extraExtensionDirs = [], userManifestPath) {
133442
133442
  const list = [];
133443
133443
  try {
133444
133444
  const devtoolsForBrowser = resolveBuiltInExtensionForBrowser({
@@ -133451,7 +133451,7 @@ var __webpack_modules__ = {
133451
133451
  packageName: 'extension-js-theme',
133452
133452
  browser
133453
133453
  });
133454
- const userHasNewTabOverride = hasNewTabOverride(userExtensionOutputPath);
133454
+ const userHasNewTabOverride = hasNewTabOverride(userExtensionOutputPath) || ('string' == typeof userManifestPath ? hasNewTabOverride(path__rspack_import_1.dirname(userManifestPath)) : false);
133455
133455
  const devtoolsHasNewTabOverride = devtoolsForBrowser ? hasNewTabOverride(devtoolsForBrowser) : false;
133456
133456
  const shouldSkipDevtoolsForNtpConflict = userHasNewTabOverride && devtoolsHasNewTabOverride;
133457
133457
  if (devtoolsForBrowser && !shouldSkipDevtoolsForNtpConflict) list.push(devtoolsForBrowser);
@@ -134817,7 +134817,7 @@ var __webpack_modules__ = {
134817
134817
  },
134818
134818
  "./package.json" (module) {
134819
134819
  "use strict";
134820
- module.exports = JSON.parse('{"rE":"3.8.5","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"}}');
134820
+ module.exports = JSON.parse('{"rE":"3.8.7-canary.198.2bb934f","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"}}');
134821
134821
  }
134822
134822
  };
134823
134823
  var __webpack_module_cache__ = {};
@@ -135977,7 +135977,7 @@ var __webpack_exports__ = {};
135977
135977
  projectRoot: packageJsonDir,
135978
135978
  config: merged.extensions
135979
135979
  });
135980
- const unpackedExtensionDirsToLoad = (0, extensions_to_load.n)(external_path_.resolve(__dirname, '..'), 'production', browser, outputPath, companionUnpackedExtensionDirs);
135980
+ const unpackedExtensionDirsToLoad = (0, extensions_to_load.n)(external_path_.resolve(__dirname, '..'), 'production', browser, outputPath, companionUnpackedExtensionDirs, projectStructure.manifestPath);
135981
135981
  await runOnlyPreviewBrowser({
135982
135982
  browser,
135983
135983
  outPath: outputPath,
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.5",
27
+ "version": "3.8.7-canary.198.2bb934f",
28
28
  "description": "Develop, build, preview, and package Extension.js projects.",
29
29
  "author": {
30
30
  "name": "Cezar Augusto",