extension-develop 3.7.0-canary.182.df71291 → 3.7.0-canary.183.c16fbc0

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
@@ -872,6 +872,21 @@ exports.modules = {
872
872
  return styleLoaders.filter(Boolean);
873
873
  }
874
874
  var is_content_script = __webpack_require__("./webpack/plugin-css/css-lib/is-content-script.ts");
875
+ function resolvePreprocessorLoader(loader, projectPath) {
876
+ const extensionRoot = (0, css_lib_integrations.He)();
877
+ const paths = [
878
+ projectPath,
879
+ extensionRoot || void 0,
880
+ process.cwd()
881
+ ].filter(Boolean);
882
+ try {
883
+ return require.resolve(loader, {
884
+ paths
885
+ });
886
+ } catch {
887
+ throw new Error(`[CSS] ${loader} could not be resolved for content scripts. Searched: ${paths.join(', ')}`);
888
+ }
889
+ }
875
890
  async function cssInContentScriptLoader(projectPath, manifestPath, mode, usage = {}) {
876
891
  const { useSass = true, useLess = true } = usage;
877
892
  const isContentScript = (issuer)=>(0, is_content_script.z)(issuer, manifestPath, projectPath);
@@ -937,13 +952,28 @@ exports.modules = {
937
952
  ...baseConfig,
938
953
  use: await commonStyleLoaders(projectPath, {
939
954
  mode: mode,
940
- loader: require.resolve(loader),
955
+ loader: resolvePreprocessorLoader(loader, projectPath),
941
956
  loaderOptions
942
957
  })
943
958
  };
944
959
  }));
945
960
  return rules;
946
961
  }
962
+ function css_in_html_loader_resolvePreprocessorLoader(loader, projectPath) {
963
+ const extensionRoot = (0, css_lib_integrations.He)();
964
+ const paths = [
965
+ projectPath,
966
+ extensionRoot || void 0,
967
+ process.cwd()
968
+ ].filter(Boolean);
969
+ try {
970
+ return require.resolve(loader, {
971
+ paths
972
+ });
973
+ } catch {
974
+ throw new Error(`[CSS] ${loader} could not be resolved for HTML entries. Searched: ${paths.join(', ')}`);
975
+ }
976
+ }
947
977
  async function cssInHtmlLoader(projectPath, mode, manifestPath, usage = {}) {
948
978
  const { useSass = true, useLess = true } = usage;
949
979
  const isNotContentScript = (issuer)=>!(0, is_content_script.z)(issuer, manifestPath, projectPath);
@@ -1006,7 +1036,7 @@ exports.modules = {
1006
1036
  ...baseConfig,
1007
1037
  use: await commonStyleLoaders(projectPath, {
1008
1038
  mode: mode,
1009
- loader: require.resolve(loader),
1039
+ loader: css_in_html_loader_resolvePreprocessorLoader(loader, projectPath),
1010
1040
  loaderOptions
1011
1041
  })
1012
1042
  };
package/dist/module.cjs CHANGED
@@ -134661,7 +134661,7 @@ var __webpack_modules__ = {
134661
134661
  },
134662
134662
  "./package.json" (module) {
134663
134663
  "use strict";
134664
- module.exports = JSON.parse('{"rE":"3.7.0-canary.182.df71291","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"}}');
134664
+ module.exports = JSON.parse('{"rE":"3.7.0-canary.183.c16fbc0","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"}}');
134665
134665
  }
134666
134666
  };
134667
134667
  var __webpack_module_cache__ = {};
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.7.0-canary.182.df71291",
27
+ "version": "3.7.0-canary.183.c16fbc0",
28
28
  "description": "Develop, build, preview, and package Extension.js projects.",
29
29
  "author": {
30
30
  "name": "Cezar Augusto",