extension-develop 3.0.0-next.53 → 3.0.0-next.54

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.
Files changed (2) hide show
  1. package/dist/module.js +54 -9
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -124811,6 +124811,14 @@ var __webpack_modules__ = {
124811
124811
  return `${getLoggingPrefix('error')} Your project declares dependencies that are managed by ${pintor__WEBPACK_IMPORTED_MODULE_2___default().blue('Extension.js')} and referenced in ${pintor__WEBPACK_IMPORTED_MODULE_2___default().underline('extension.config.js')}\n${pintor__WEBPACK_IMPORTED_MODULE_2___default().red('This can cause version conflicts and break the development/build process.')}\n\n${pintor__WEBPACK_IMPORTED_MODULE_2___default().gray('Managed dependencies (remove these from your package.json):')}\n${list}\n\n${pintor__WEBPACK_IMPORTED_MODULE_2___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_2___default().underline(userPackageJsonPath)}\nIf you need a different version, open an issue so we can consider bundling it safely.\nOperation aborted.`;
124812
124812
  }
124813
124813
  },
124814
+ "@rspack/plugin-preact-refresh": function(module) {
124815
+ "use strict";
124816
+ module.exports = require("@rspack/plugin-preact-refresh");
124817
+ },
124818
+ "@rspack/plugin-react-refresh": function(module) {
124819
+ "use strict";
124820
+ module.exports = require("@rspack/plugin-react-refresh");
124821
+ },
124814
124822
  "adm-zip": function(module) {
124815
124823
  "use strict";
124816
124824
  module.exports = require("adm-zip");
@@ -124867,6 +124875,10 @@ var __webpack_modules__ = {
124867
124875
  "use strict";
124868
124876
  module.exports = require("util");
124869
124877
  },
124878
+ "vue-loader": function(module) {
124879
+ "use strict";
124880
+ module.exports = require("vue-loader");
124881
+ },
124870
124882
  "go-git-it": function(module) {
124871
124883
  "use strict";
124872
124884
  module.exports = import("go-git-it").then(function(module) {
@@ -124875,7 +124887,7 @@ var __webpack_modules__ = {
124875
124887
  },
124876
124888
  "./package.json": function(module) {
124877
124889
  "use strict";
124878
- module.exports = JSON.parse('{"i8":"3.0.0-next.53","HO":{"@rspack/core":"^1.6.3","@rspack/dev-server":"^1.1.4","@swc/core":"^1.13.2","@swc/helpers":"^0.5.15","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"3.2.1","chromium-location":"1.2.3","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","edge-location":"^2.1.1","firefox-location2":"2.1.1","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","magic-string":"^0.30.10","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.2.0","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.18.0"}}');
124890
+ module.exports = JSON.parse('{"i8":"3.0.0-next.54","HO":{"@rspack/core":"^1.6.3","@rspack/dev-server":"^1.1.4","@swc/core":"^1.13.2","@swc/helpers":"^0.5.15","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"3.2.1","chromium-location":"1.2.3","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","edge-location":"^2.1.1","firefox-location2":"2.1.1","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","magic-string":"^0.30.10","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.2.0","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.18.0"}}');
124879
124891
  }
124880
124892
  };
124881
124893
  var __webpack_module_cache__ = {};
@@ -126735,8 +126747,6 @@ var __webpack_exports__ = {};
126735
126747
  }
126736
126748
  }
126737
126749
  plugin_static_assets_define_property(StaticAssetsPlugin, "name", 'plugin-static-assets');
126738
- const plugin_preact_refresh_namespaceObject = require("@rspack/plugin-preact-refresh");
126739
- var plugin_preact_refresh_default = /*#__PURE__*/ __webpack_require__.n(plugin_preact_refresh_namespaceObject);
126740
126750
  function messages_isUsingIntegration(name) {
126741
126751
  return `${external_pintor_default().gray("\u25BA\u25BA\u25BA")} Using ${external_pintor_default().brightBlue(name)}...`;
126742
126752
  }
@@ -126774,6 +126784,16 @@ var __webpack_exports__ = {};
126774
126784
  return frameworks.some((fw)=>__webpack_require__("./webpack/plugin-css/css-lib/integrations.ts").S(projectPath, fw));
126775
126785
  }
126776
126786
  let preact_userMessageDelivered = false;
126787
+ let cachedPreactRefreshPlugin;
126788
+ function getPreactRefreshPlugin() {
126789
+ if (cachedPreactRefreshPlugin) return cachedPreactRefreshPlugin;
126790
+ try {
126791
+ const mod = __webpack_require__("@rspack/plugin-preact-refresh");
126792
+ const plugin = mod && mod.default || mod;
126793
+ cachedPreactRefreshPlugin = plugin;
126794
+ return cachedPreactRefreshPlugin;
126795
+ } catch {}
126796
+ }
126777
126797
  function isUsingPreact(projectPath) {
126778
126798
  if ((0, css_lib_integrations.S)(projectPath, 'preact')) {
126779
126799
  if (!preact_userMessageDelivered) {
@@ -126799,8 +126819,10 @@ var __webpack_exports__ = {};
126799
126819
  console.log(messages_youAreAllSet('Preact'));
126800
126820
  process.exit(0);
126801
126821
  }
126822
+ const PreactRefreshPlugin = getPreactRefreshPlugin();
126823
+ if (!PreactRefreshPlugin) throw new Error('[Preact] @rspack/plugin-preact-refresh is installed but its plugin could not be resolved.');
126802
126824
  const preactPlugins = [
126803
- new (plugin_preact_refresh_default())({})
126825
+ new PreactRefreshPlugin({})
126804
126826
  ];
126805
126827
  return {
126806
126828
  plugins: preactPlugins,
@@ -126813,9 +126835,17 @@ var __webpack_exports__ = {};
126813
126835
  }
126814
126836
  };
126815
126837
  }
126816
- const plugin_react_refresh_namespaceObject = require("@rspack/plugin-react-refresh");
126817
- var plugin_react_refresh_default = /*#__PURE__*/ __webpack_require__.n(plugin_react_refresh_namespaceObject);
126818
126838
  let react_userMessageDelivered = false;
126839
+ let cachedReactRefreshPlugin;
126840
+ function getReactRefreshPlugin() {
126841
+ if (cachedReactRefreshPlugin) return cachedReactRefreshPlugin;
126842
+ try {
126843
+ const mod = __webpack_require__("@rspack/plugin-react-refresh");
126844
+ const plugin = mod && mod.default || mod;
126845
+ cachedReactRefreshPlugin = plugin;
126846
+ return cachedReactRefreshPlugin;
126847
+ } catch {}
126848
+ }
126819
126849
  function isUsingReact(projectPath) {
126820
126850
  if ((0, css_lib_integrations.S)(projectPath, 'react')) {
126821
126851
  if (!react_userMessageDelivered) {
@@ -126839,8 +126869,10 @@ var __webpack_exports__ = {};
126839
126869
  console.log(messages_youAreAllSet('React'));
126840
126870
  process.exit(0);
126841
126871
  }
126872
+ const ReactRefreshPlugin = getReactRefreshPlugin();
126873
+ if (!ReactRefreshPlugin) throw new Error('[React] @rspack/plugin-react-refresh is installed but its plugin could not be resolved.');
126842
126874
  const reactPlugins = [
126843
- new (plugin_react_refresh_default())({
126875
+ new ReactRefreshPlugin({
126844
126876
  overlay: false
126845
126877
  })
126846
126878
  ];
@@ -126872,7 +126904,6 @@ var __webpack_exports__ = {};
126872
126904
  alias
126873
126905
  };
126874
126906
  }
126875
- const external_vue_loader_namespaceObject = require("vue-loader");
126876
126907
  let load_loader_options_userMessageDelivered = false;
126877
126908
  function isAuthorMode() {
126878
126909
  const v = String(process.env.EXTENSION_AUTHOR_MODE || '').trim().toLowerCase();
@@ -126907,6 +126938,18 @@ var __webpack_exports__ = {};
126907
126938
  return null;
126908
126939
  }
126909
126940
  let vue_userMessageDelivered = false;
126941
+ let cachedVueLoaderPlugin;
126942
+ function getVueLoaderPlugin() {
126943
+ if (cachedVueLoaderPlugin) return cachedVueLoaderPlugin;
126944
+ try {
126945
+ const mod = __webpack_require__("vue-loader");
126946
+ const plugin = mod && mod.VueLoaderPlugin || mod && mod.default && mod.default.VueLoaderPlugin;
126947
+ if (plugin) {
126948
+ cachedVueLoaderPlugin = plugin;
126949
+ return cachedVueLoaderPlugin;
126950
+ }
126951
+ } catch {}
126952
+ }
126910
126953
  function isUsingVue(projectPath) {
126911
126954
  const using = (0, css_lib_integrations.S)(projectPath, 'vue');
126912
126955
  if (using && !vue_userMessageDelivered) {
@@ -126928,6 +126971,8 @@ var __webpack_exports__ = {};
126928
126971
  console.log(messages_youAreAllSet('Vue'));
126929
126972
  process.exit(0);
126930
126973
  }
126974
+ const VueLoaderPlugin = getVueLoaderPlugin();
126975
+ if (!VueLoaderPlugin) throw new Error('[Vue] vue-loader is installed but VueLoaderPlugin could not be resolved.');
126931
126976
  const customOptions = await loadLoaderOptions(projectPath, 'vue');
126932
126977
  const defaultLoaders = [
126933
126978
  {
@@ -126942,7 +126987,7 @@ var __webpack_exports__ = {};
126942
126987
  }
126943
126988
  ];
126944
126989
  const defaultPlugins = [
126945
- new external_vue_loader_namespaceObject.VueLoaderPlugin()
126990
+ new VueLoaderPlugin()
126946
126991
  ];
126947
126992
  return {
126948
126993
  plugins: defaultPlugins,
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "name": "extension-develop",
24
- "version": "3.0.0-next.53",
24
+ "version": "3.0.0-next.54",
25
25
  "description": "The develop step of Extension.js",
26
26
  "author": {
27
27
  "name": "Cezar Augusto",