extension-develop 3.6.2 → 3.6.3
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/module.cjs +20 -28
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -132542,7 +132542,7 @@ var __webpack_modules__ = {
|
|
|
132542
132542
|
a: ()=>isUsingSvelte
|
|
132543
132543
|
});
|
|
132544
132544
|
var path__rspack_import_0 = __webpack_require__("path");
|
|
132545
|
-
var
|
|
132545
|
+
var fs__rspack_import_1 = __webpack_require__("fs");
|
|
132546
132546
|
var _js_frameworks_lib_messages__rspack_import_2 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
|
|
132547
132547
|
var _frameworks_lib_integrations__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
|
|
132548
132548
|
var _js_frameworks_lib_load_loader_options__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/load-loader-options.ts");
|
|
@@ -132635,42 +132635,34 @@ var __webpack_modules__ = {
|
|
|
132635
132635
|
}
|
|
132636
132636
|
}
|
|
132637
132637
|
];
|
|
132638
|
-
const
|
|
132639
|
-
const
|
|
132640
|
-
|
|
132641
|
-
|
|
132642
|
-
|
|
132643
|
-
|
|
132644
|
-
|
|
132638
|
+
const sveltePackageJson = resolveFromProject('svelte/package.json', projectPath);
|
|
132639
|
+
const sveltePackageRoot = sveltePackageJson ? path__rspack_import_0.dirname(sveltePackageJson) : void 0;
|
|
132640
|
+
const resolveClientSubpath = (relative)=>{
|
|
132641
|
+
const direct = resolveFromProject(`svelte/${relative}`, projectPath);
|
|
132642
|
+
if (direct) return direct;
|
|
132643
|
+
if (!sveltePackageRoot) return;
|
|
132644
|
+
const fromRoot = path__rspack_import_0.join(sveltePackageRoot, relative);
|
|
132645
|
+
return fs__rspack_import_1.existsSync(fromRoot) ? fromRoot : void 0;
|
|
132645
132646
|
};
|
|
132646
132647
|
const alias = {};
|
|
132647
|
-
const
|
|
132648
|
-
const
|
|
132649
|
-
const
|
|
132650
|
-
const
|
|
132651
|
-
|
|
132652
|
-
if (
|
|
132653
|
-
if (
|
|
132654
|
-
if (
|
|
132655
|
-
if (svelteMotion) alias['svelte/motion'] = svelteMotion;
|
|
132656
|
-
if (svelteTransition) alias['svelte/transition'] = svelteTransition;
|
|
132648
|
+
const svelteClient = resolveClientSubpath('src/index-client.js');
|
|
132649
|
+
const svelteStoreClient = resolveClientSubpath('src/store/index-client.js');
|
|
132650
|
+
const svelteReactivityClient = resolveClientSubpath('src/reactivity/index-client.js');
|
|
132651
|
+
const svelteLegacyClient = resolveClientSubpath('src/legacy/legacy-client.js');
|
|
132652
|
+
if (svelteClient) alias.svelte = svelteClient;
|
|
132653
|
+
if (svelteStoreClient) alias['svelte/store'] = svelteStoreClient;
|
|
132654
|
+
if (svelteReactivityClient) alias['svelte/reactivity'] = svelteReactivityClient;
|
|
132655
|
+
if (svelteLegacyClient) alias['svelte/legacy'] = svelteLegacyClient;
|
|
132657
132656
|
const resolverPlugin = {
|
|
132658
132657
|
apply (compiler) {
|
|
132659
132658
|
const existingMainFields = compiler.options.resolve && compiler.options.resolve.mainFields || [];
|
|
132660
132659
|
const existingExtensions = compiler.options.resolve && compiler.options.resolve.extensions || [];
|
|
132661
132660
|
const existingAlias = compiler.options.resolve && compiler.options.resolve.alias || {};
|
|
132662
132661
|
const existingModules = compiler.options.resolve && compiler.options.resolve.modules || [];
|
|
132663
|
-
const nextMainFields = [
|
|
132664
|
-
'svelte',
|
|
132665
|
-
'browser',
|
|
132666
|
-
'module',
|
|
132667
|
-
'main',
|
|
132668
|
-
...existingMainFields
|
|
132669
|
-
];
|
|
132670
132662
|
const dedupe = (arr)=>Array.from(new Set(arr));
|
|
132671
132663
|
compiler.options.resolve = {
|
|
132672
132664
|
...compiler.options.resolve,
|
|
132673
|
-
mainFields: dedupe(
|
|
132665
|
+
mainFields: dedupe(existingMainFields),
|
|
132674
132666
|
extensions: dedupe([
|
|
132675
132667
|
'.svelte',
|
|
132676
132668
|
...existingExtensions
|
|
@@ -132688,7 +132680,7 @@ var __webpack_modules__ = {
|
|
|
132688
132680
|
resolverPlugin
|
|
132689
132681
|
],
|
|
132690
132682
|
loaders: defaultLoaders,
|
|
132691
|
-
alias
|
|
132683
|
+
alias: Object.keys(alias).length > 0 ? alias : void 0
|
|
132692
132684
|
};
|
|
132693
132685
|
}
|
|
132694
132686
|
},
|
|
@@ -134373,7 +134365,7 @@ var __webpack_modules__ = {
|
|
|
134373
134365
|
},
|
|
134374
134366
|
"./package.json" (module) {
|
|
134375
134367
|
"use strict";
|
|
134376
|
-
module.exports = JSON.parse('{"rE":"3.6.
|
|
134368
|
+
module.exports = JSON.parse('{"rE":"3.6.3","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"}}');
|
|
134377
134369
|
}
|
|
134378
134370
|
};
|
|
134379
134371
|
var __webpack_module_cache__ = {};
|
package/package.json
CHANGED