extension-develop 3.8.3 → 3.8.4
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 +3 -26
- package/dist/module.cjs +27 -15
- package/package.json +1 -1
package/dist/535.cjs
CHANGED
|
@@ -872,20 +872,9 @@ 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
|
+
var optional_deps_resolver = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
|
|
875
876
|
function resolvePreprocessorLoader(loader, projectPath) {
|
|
876
|
-
|
|
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
|
-
}
|
|
877
|
+
return (0, optional_deps_resolver.nR)(loader, projectPath);
|
|
889
878
|
}
|
|
890
879
|
async function cssInContentScriptLoader(projectPath, manifestPath, mode, usage = {}) {
|
|
891
880
|
const { useSass = true, useLess = true } = usage;
|
|
@@ -960,19 +949,7 @@ exports.modules = {
|
|
|
960
949
|
return rules;
|
|
961
950
|
}
|
|
962
951
|
function css_in_html_loader_resolvePreprocessorLoader(loader, projectPath) {
|
|
963
|
-
|
|
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
|
-
}
|
|
952
|
+
return (0, optional_deps_resolver.nR)(loader, projectPath);
|
|
976
953
|
}
|
|
977
954
|
async function cssInHtmlLoader(projectPath, mode, manifestPath, usage = {}) {
|
|
978
955
|
const { useSass = true, useLess = true } = usage;
|
package/dist/module.cjs
CHANGED
|
@@ -131929,7 +131929,7 @@ var __webpack_modules__ = {
|
|
|
131929
131929
|
async function maybeUseLess(projectPath, manifestPath) {
|
|
131930
131930
|
const resolvedManifestPath = manifestPath || path__rspack_import_0.join(projectPath, 'manifest.json');
|
|
131931
131931
|
if (!isUsingLess(projectPath)) return [];
|
|
131932
|
-
const lessLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
131932
|
+
const lessLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.fV)({
|
|
131933
131933
|
integration: 'LESS',
|
|
131934
131934
|
projectPath,
|
|
131935
131935
|
dependencyId: 'less-loader',
|
|
@@ -132185,7 +132185,7 @@ var __webpack_modules__ = {
|
|
|
132185
132185
|
const tailwindPresent = (0, _tailwind__rspack_import_6.F)(projectPath);
|
|
132186
132186
|
const tailwindConfigured = tailwindPresent || userConfigMentionsTailwind;
|
|
132187
132187
|
if (!userPostCssConfig && !pkgHasPostCss && !tailwindPresent) return {};
|
|
132188
|
-
const resolvedPostCssLoader = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.
|
|
132188
|
+
const resolvedPostCssLoader = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.fV)({
|
|
132189
132189
|
integration: 'PostCSS',
|
|
132190
132190
|
projectPath,
|
|
132191
132191
|
dependencyId: 'postcss-loader',
|
|
@@ -132374,7 +132374,7 @@ var __webpack_modules__ = {
|
|
|
132374
132374
|
}
|
|
132375
132375
|
async function maybeUseSass(projectPath) {
|
|
132376
132376
|
if (!isUsingSass(projectPath)) return [];
|
|
132377
|
-
const sassLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
132377
|
+
const sassLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.fV)({
|
|
132378
132378
|
integration: 'SASS',
|
|
132379
132379
|
projectPath,
|
|
132380
132380
|
dependencyId: 'sass-loader',
|
|
@@ -132581,14 +132581,14 @@ var __webpack_modules__ = {
|
|
|
132581
132581
|
'@rspack/plugin-preact-refresh',
|
|
132582
132582
|
'preact'
|
|
132583
132583
|
];
|
|
132584
|
-
await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
132584
|
+
await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.fV)({
|
|
132585
132585
|
integration: 'Preact',
|
|
132586
132586
|
projectPath,
|
|
132587
132587
|
dependencyId: '@rspack/plugin-preact-refresh',
|
|
132588
132588
|
installDependencies: preactDependencies,
|
|
132589
132589
|
verifyPackageIds: preactDependencies
|
|
132590
132590
|
});
|
|
132591
|
-
const PreactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
132591
|
+
const PreactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.CZ)({
|
|
132592
132592
|
integration: 'Preact',
|
|
132593
132593
|
projectPath,
|
|
132594
132594
|
dependencyId: '@rspack/plugin-preact-refresh',
|
|
@@ -132656,14 +132656,14 @@ var __webpack_modules__ = {
|
|
|
132656
132656
|
'react-refresh',
|
|
132657
132657
|
'@rspack/plugin-react-refresh'
|
|
132658
132658
|
];
|
|
132659
|
-
await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
132659
|
+
await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.fV)({
|
|
132660
132660
|
integration: 'React',
|
|
132661
132661
|
projectPath,
|
|
132662
132662
|
dependencyId: 'react-refresh',
|
|
132663
132663
|
installDependencies: reactDependencies,
|
|
132664
132664
|
verifyPackageIds: reactDependencies
|
|
132665
132665
|
});
|
|
132666
|
-
const ReactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.
|
|
132666
|
+
const ReactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.CZ)({
|
|
132667
132667
|
integration: 'React',
|
|
132668
132668
|
projectPath,
|
|
132669
132669
|
dependencyId: '@rspack/plugin-react-refresh',
|
|
@@ -132753,7 +132753,7 @@ var __webpack_modules__ = {
|
|
|
132753
132753
|
}
|
|
132754
132754
|
async function maybeUseSvelte(projectPath, mode) {
|
|
132755
132755
|
if (!isUsingSvelte(projectPath)) return;
|
|
132756
|
-
const svelteLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.
|
|
132756
|
+
const svelteLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.fV)({
|
|
132757
132757
|
integration: 'Svelte',
|
|
132758
132758
|
projectPath,
|
|
132759
132759
|
dependencyId: 'svelte-loader',
|
|
@@ -132766,7 +132766,7 @@ var __webpack_modules__ = {
|
|
|
132766
132766
|
'svelte-loader'
|
|
132767
132767
|
]
|
|
132768
132768
|
});
|
|
132769
|
-
await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.
|
|
132769
|
+
await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.fV)({
|
|
132770
132770
|
integration: 'TypeScript',
|
|
132771
132771
|
projectPath,
|
|
132772
132772
|
dependencyId: "typescript",
|
|
@@ -133008,14 +133008,14 @@ var __webpack_modules__ = {
|
|
|
133008
133008
|
'vue-loader',
|
|
133009
133009
|
'@vue/compiler-sfc'
|
|
133010
133010
|
];
|
|
133011
|
-
const vueLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.
|
|
133011
|
+
const vueLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.fV)({
|
|
133012
133012
|
integration: 'Vue',
|
|
133013
133013
|
projectPath,
|
|
133014
133014
|
dependencyId: 'vue-loader',
|
|
133015
133015
|
installDependencies: vueDependencies,
|
|
133016
133016
|
verifyPackageIds: vueDependencies
|
|
133017
133017
|
});
|
|
133018
|
-
const VueLoaderPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.
|
|
133018
|
+
const VueLoaderPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.CZ)({
|
|
133019
133019
|
integration: 'Vue',
|
|
133020
133020
|
projectPath,
|
|
133021
133021
|
dependencyId: 'vue-loader',
|
|
@@ -133863,8 +133863,9 @@ var __webpack_modules__ = {
|
|
|
133863
133863
|
"./webpack/webpack-lib/optional-deps-resolver.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
133864
133864
|
"use strict";
|
|
133865
133865
|
__webpack_require__.d(__webpack_exports__, {
|
|
133866
|
-
|
|
133867
|
-
|
|
133866
|
+
CZ: ()=>ensureOptionalModuleLoaded,
|
|
133867
|
+
fV: ()=>ensureOptionalPackageResolved,
|
|
133868
|
+
nR: ()=>resolveOptionalDependencySync
|
|
133868
133869
|
});
|
|
133869
133870
|
var fs__rspack_import_0 = __webpack_require__("fs");
|
|
133870
133871
|
var path__rspack_import_1 = __webpack_require__("path");
|
|
@@ -133878,6 +133879,7 @@ var __webpack_modules__ = {
|
|
|
133878
133879
|
extensionRoot || void 0,
|
|
133879
133880
|
process.cwd()
|
|
133880
133881
|
].filter(Boolean);
|
|
133882
|
+
if (extensionRoot && extensionRoot.includes('.pnpm')) bases.push(path__rspack_import_1.join(extensionRoot, '..', '..'));
|
|
133881
133883
|
return Array.from(new Set(bases));
|
|
133882
133884
|
}
|
|
133883
133885
|
function packageJsonPath(basePath) {
|
|
@@ -133916,7 +133918,9 @@ var __webpack_modules__ = {
|
|
|
133916
133918
|
const resolved = resolveDependency(dependencyId, projectPath);
|
|
133917
133919
|
if (resolved) return resolved.resolvedPath;
|
|
133918
133920
|
if (!installRoot) return;
|
|
133919
|
-
|
|
133921
|
+
const fromRoot = resolveFromInstallRootPackageDir(dependencyId, installRoot);
|
|
133922
|
+
if (fromRoot) return fromRoot;
|
|
133923
|
+
if (installRoot.includes('.pnpm')) return resolveFromInstallRootPackageDir(dependencyId, path__rspack_import_1.join(installRoot, '..', '..'));
|
|
133920
133924
|
}
|
|
133921
133925
|
function getPackageDirFromInstallRoot(dependencyId, installRoot) {
|
|
133922
133926
|
return path__rspack_import_1.join(installRoot, 'node_modules', ...dependencyId.split('/'));
|
|
@@ -134044,6 +134048,13 @@ var __webpack_modules__ = {
|
|
|
134044
134048
|
installSingleFlight.delete(key);
|
|
134045
134049
|
}
|
|
134046
134050
|
}
|
|
134051
|
+
function resolveOptionalDependencySync(dependencyId, projectPath) {
|
|
134052
|
+
const installRoot = (0, _plugin_css_css_lib_integrations__rspack_import_3.He)();
|
|
134053
|
+
const resolved = resolveFromKnownLocations(dependencyId, projectPath, installRoot);
|
|
134054
|
+
if (resolved) return resolved;
|
|
134055
|
+
const bases = getResolutionBases(projectPath);
|
|
134056
|
+
throw new Error(`[CSS] ${dependencyId} could not be resolved. Searched: ${bases.join(', ')}`);
|
|
134057
|
+
}
|
|
134047
134058
|
async function ensureOptionalPackageResolved(input) {
|
|
134048
134059
|
const installRoot = (0, _plugin_css_css_lib_integrations__rspack_import_3.He)();
|
|
134049
134060
|
const resolvedBeforeInstall = resolveFromKnownLocations(input.dependencyId, input.projectPath, installRoot);
|
|
@@ -134788,7 +134799,7 @@ var __webpack_modules__ = {
|
|
|
134788
134799
|
},
|
|
134789
134800
|
"./package.json" (module) {
|
|
134790
134801
|
"use strict";
|
|
134791
|
-
module.exports = JSON.parse('{"rE":"3.8.
|
|
134802
|
+
module.exports = JSON.parse('{"rE":"3.8.4","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"}}');
|
|
134792
134803
|
}
|
|
134793
134804
|
};
|
|
134794
134805
|
var __webpack_module_cache__ = {};
|
|
@@ -135429,6 +135440,7 @@ var __webpack_exports__ = {};
|
|
|
135429
135440
|
extensionRoot || void 0,
|
|
135430
135441
|
process.cwd()
|
|
135431
135442
|
].filter(Boolean);
|
|
135443
|
+
if (extensionRoot && extensionRoot.includes('.pnpm')) paths.push(external_path_.join(extensionRoot, '..', '..'));
|
|
135432
135444
|
return Array.from(new Set(paths));
|
|
135433
135445
|
}
|
|
135434
135446
|
function canResolveFromProject(id, projectPath) {
|
package/package.json
CHANGED