extension-develop 3.7.0-canary.177.739613 → 3.7.0-canary.178.ff75286
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 +114 -59
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -132540,6 +132540,7 @@ var __webpack_modules__ = {
|
|
|
132540
132540
|
"use strict";
|
|
132541
132541
|
__webpack_require__.d(__webpack_exports__, {
|
|
132542
132542
|
Dy: ()=>_plugin_css_css_lib_integrations__rspack_import_0.Dy,
|
|
132543
|
+
He: ()=>_plugin_css_css_lib_integrations__rspack_import_0.He,
|
|
132543
132544
|
qQ: ()=>isUsingJSFramework,
|
|
132544
132545
|
tm: ()=>_plugin_css_css_lib_integrations__rspack_import_0.tm,
|
|
132545
132546
|
ws: ()=>_plugin_css_css_lib_integrations__rspack_import_0.ws
|
|
@@ -132658,14 +132659,44 @@ var __webpack_modules__ = {
|
|
|
132658
132659
|
var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
|
|
132659
132660
|
let userMessageDelivered = false;
|
|
132660
132661
|
let cachedPreactRefreshPlugin;
|
|
132661
|
-
function
|
|
132662
|
-
|
|
132662
|
+
function getResolutionRequires(projectPath) {
|
|
132663
|
+
const requires = [];
|
|
132664
|
+
try {
|
|
132665
|
+
requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(projectPath, 'package.json')));
|
|
132666
|
+
} catch {}
|
|
132667
|
+
try {
|
|
132668
|
+
const developRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
|
|
132669
|
+
if (developRoot) requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(developRoot, 'package.json')));
|
|
132670
|
+
} catch {}
|
|
132671
|
+
return requires;
|
|
132672
|
+
}
|
|
132673
|
+
function canResolveInAnyContext(projectPath, id) {
|
|
132674
|
+
try {
|
|
132675
|
+
require.resolve(id);
|
|
132676
|
+
return true;
|
|
132677
|
+
} catch {}
|
|
132678
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
132679
|
+
req.resolve(id);
|
|
132680
|
+
return true;
|
|
132681
|
+
} catch {}
|
|
132682
|
+
return false;
|
|
132683
|
+
}
|
|
132684
|
+
function loadModuleInAnyContext(projectPath, id) {
|
|
132663
132685
|
try {
|
|
132664
|
-
|
|
132665
|
-
|
|
132686
|
+
return require(id);
|
|
132687
|
+
} catch {}
|
|
132688
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
132689
|
+
return req(id);
|
|
132690
|
+
} catch {}
|
|
132691
|
+
}
|
|
132692
|
+
function getPreactRefreshPlugin(projectPath) {
|
|
132693
|
+
if (cachedPreactRefreshPlugin) return cachedPreactRefreshPlugin;
|
|
132694
|
+
const mod = loadModuleInAnyContext(projectPath, '@rspack/plugin-preact-refresh');
|
|
132695
|
+
const plugin = mod && mod.default || mod;
|
|
132696
|
+
if (plugin) {
|
|
132666
132697
|
cachedPreactRefreshPlugin = plugin;
|
|
132667
132698
|
return cachedPreactRefreshPlugin;
|
|
132668
|
-
}
|
|
132699
|
+
}
|
|
132669
132700
|
}
|
|
132670
132701
|
function isUsingPreact(projectPath) {
|
|
132671
132702
|
if ((0, _frameworks_lib_integrations__rspack_import_4.ws)(projectPath, 'preact')) {
|
|
@@ -132679,14 +132710,7 @@ var __webpack_modules__ = {
|
|
|
132679
132710
|
}
|
|
132680
132711
|
async function maybeUsePreact(projectPath) {
|
|
132681
132712
|
if (!isUsingPreact(projectPath)) return;
|
|
132682
|
-
const canResolvePreactRefresh = ()=>
|
|
132683
|
-
try {
|
|
132684
|
-
require.resolve('@rspack/plugin-preact-refresh');
|
|
132685
|
-
return true;
|
|
132686
|
-
} catch {
|
|
132687
|
-
return false;
|
|
132688
|
-
}
|
|
132689
|
-
};
|
|
132713
|
+
const canResolvePreactRefresh = ()=>canResolveInAnyContext(projectPath, '@rspack/plugin-preact-refresh');
|
|
132690
132714
|
if (!canResolvePreactRefresh()) {
|
|
132691
132715
|
const preactDependencies = [
|
|
132692
132716
|
'@prefresh/core',
|
|
@@ -132699,7 +132723,7 @@ var __webpack_modules__ = {
|
|
|
132699
132723
|
if (!canResolvePreactRefresh()) throw new Error('[Preact] Dependencies were installed, but @rspack/plugin-preact-refresh is still unavailable in this runtime.');
|
|
132700
132724
|
if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_3.Jv('Preact'));
|
|
132701
132725
|
}
|
|
132702
|
-
const PreactRefreshPlugin = getPreactRefreshPlugin();
|
|
132726
|
+
const PreactRefreshPlugin = getPreactRefreshPlugin(projectPath);
|
|
132703
132727
|
if (!PreactRefreshPlugin) throw new Error('[Preact] @rspack/plugin-preact-refresh is installed but its plugin could not be resolved.');
|
|
132704
132728
|
const preactPlugins = [
|
|
132705
132729
|
new PreactRefreshPlugin({})
|
|
@@ -132745,14 +132769,44 @@ var __webpack_modules__ = {
|
|
|
132745
132769
|
var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
|
|
132746
132770
|
let userMessageDelivered = false;
|
|
132747
132771
|
let cachedReactRefreshPlugin;
|
|
132748
|
-
function
|
|
132749
|
-
|
|
132772
|
+
function getResolutionRequires(projectPath) {
|
|
132773
|
+
const requires = [];
|
|
132774
|
+
try {
|
|
132775
|
+
requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(projectPath, 'package.json')));
|
|
132776
|
+
} catch {}
|
|
132750
132777
|
try {
|
|
132751
|
-
const
|
|
132752
|
-
|
|
132778
|
+
const developRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
|
|
132779
|
+
if (developRoot) requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(developRoot, 'package.json')));
|
|
132780
|
+
} catch {}
|
|
132781
|
+
return requires;
|
|
132782
|
+
}
|
|
132783
|
+
function canResolveInAnyContext(projectPath, id) {
|
|
132784
|
+
try {
|
|
132785
|
+
require.resolve(id);
|
|
132786
|
+
return true;
|
|
132787
|
+
} catch {}
|
|
132788
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
132789
|
+
req.resolve(id);
|
|
132790
|
+
return true;
|
|
132791
|
+
} catch {}
|
|
132792
|
+
return false;
|
|
132793
|
+
}
|
|
132794
|
+
function loadModuleInAnyContext(projectPath, id) {
|
|
132795
|
+
try {
|
|
132796
|
+
return require(id);
|
|
132797
|
+
} catch {}
|
|
132798
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
132799
|
+
return req(id);
|
|
132800
|
+
} catch {}
|
|
132801
|
+
}
|
|
132802
|
+
function getReactRefreshPlugin(projectPath) {
|
|
132803
|
+
if (cachedReactRefreshPlugin) return cachedReactRefreshPlugin;
|
|
132804
|
+
const mod = loadModuleInAnyContext(projectPath, '@rspack/plugin-react-refresh');
|
|
132805
|
+
const plugin = mod && mod.default || mod;
|
|
132806
|
+
if (plugin) {
|
|
132753
132807
|
cachedReactRefreshPlugin = plugin;
|
|
132754
132808
|
return cachedReactRefreshPlugin;
|
|
132755
|
-
}
|
|
132809
|
+
}
|
|
132756
132810
|
}
|
|
132757
132811
|
function isUsingReact(projectPath) {
|
|
132758
132812
|
if ((0, _frameworks_lib_integrations__rspack_import_4.ws)(projectPath, 'react')) {
|
|
@@ -132766,14 +132820,7 @@ var __webpack_modules__ = {
|
|
|
132766
132820
|
}
|
|
132767
132821
|
async function maybeUseReact(projectPath) {
|
|
132768
132822
|
if (!isUsingReact(projectPath)) return;
|
|
132769
|
-
const canResolveReactRefresh = ()=>
|
|
132770
|
-
try {
|
|
132771
|
-
require.resolve('react-refresh');
|
|
132772
|
-
return true;
|
|
132773
|
-
} catch {
|
|
132774
|
-
return false;
|
|
132775
|
-
}
|
|
132776
|
-
};
|
|
132823
|
+
const canResolveReactRefresh = ()=>canResolveInAnyContext(projectPath, 'react-refresh');
|
|
132777
132824
|
if (!canResolveReactRefresh()) {
|
|
132778
132825
|
const reactDependencies = [
|
|
132779
132826
|
'react-refresh',
|
|
@@ -132784,7 +132831,7 @@ var __webpack_modules__ = {
|
|
|
132784
132831
|
if (!canResolveReactRefresh()) throw new Error('[React] Dependencies were installed, but react-refresh is still unavailable in this runtime.');
|
|
132785
132832
|
if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_3.Jv('React'));
|
|
132786
132833
|
}
|
|
132787
|
-
const ReactRefreshPlugin = getReactRefreshPlugin();
|
|
132834
|
+
const ReactRefreshPlugin = getReactRefreshPlugin(projectPath);
|
|
132788
132835
|
if (!ReactRefreshPlugin) throw new Error('[React] @rspack/plugin-react-refresh is installed but its plugin could not be resolved.');
|
|
132789
132836
|
const reactPlugins = [
|
|
132790
132837
|
new ReactRefreshPlugin({
|
|
@@ -133119,17 +133166,42 @@ var __webpack_modules__ = {
|
|
|
133119
133166
|
var _js_frameworks_lib_load_loader_options__rspack_import_6 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/load-loader-options.ts");
|
|
133120
133167
|
let userMessageDelivered = false;
|
|
133121
133168
|
let cachedVueLoaderPlugin;
|
|
133122
|
-
function
|
|
133123
|
-
|
|
133169
|
+
function getResolutionRequires(projectPath) {
|
|
133170
|
+
const requires = [];
|
|
133124
133171
|
try {
|
|
133125
|
-
|
|
133126
|
-
|
|
133127
|
-
|
|
133128
|
-
|
|
133129
|
-
|
|
133130
|
-
|
|
133172
|
+
requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(projectPath, 'package.json')));
|
|
133173
|
+
} catch {}
|
|
133174
|
+
try {
|
|
133175
|
+
const developRoot = (0, _frameworks_lib_integrations__rspack_import_5.He)();
|
|
133176
|
+
if (developRoot) requires.push((0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(developRoot, 'package.json')));
|
|
133177
|
+
} catch {}
|
|
133178
|
+
return requires;
|
|
133179
|
+
}
|
|
133180
|
+
function resolveInAnyContext(projectPath, id) {
|
|
133181
|
+
try {
|
|
133182
|
+
return require.resolve(id);
|
|
133183
|
+
} catch {}
|
|
133184
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
133185
|
+
return req.resolve(id);
|
|
133131
133186
|
} catch {}
|
|
133132
133187
|
}
|
|
133188
|
+
function loadModuleInAnyContext(projectPath, id) {
|
|
133189
|
+
try {
|
|
133190
|
+
return require(id);
|
|
133191
|
+
} catch {}
|
|
133192
|
+
for (const req of getResolutionRequires(projectPath))try {
|
|
133193
|
+
return req(id);
|
|
133194
|
+
} catch {}
|
|
133195
|
+
}
|
|
133196
|
+
function getVueLoaderPlugin(projectPath) {
|
|
133197
|
+
if (cachedVueLoaderPlugin) return cachedVueLoaderPlugin;
|
|
133198
|
+
const mod = loadModuleInAnyContext(projectPath, 'vue-loader');
|
|
133199
|
+
const plugin = mod && mod.VueLoaderPlugin || mod && mod.default && mod.default.VueLoaderPlugin;
|
|
133200
|
+
if (plugin) {
|
|
133201
|
+
cachedVueLoaderPlugin = plugin;
|
|
133202
|
+
return cachedVueLoaderPlugin;
|
|
133203
|
+
}
|
|
133204
|
+
}
|
|
133133
133205
|
function isUsingVue(projectPath) {
|
|
133134
133206
|
const using = (0, _frameworks_lib_integrations__rspack_import_5.ws)(projectPath, 'vue');
|
|
133135
133207
|
if (using && !userMessageDelivered) {
|
|
@@ -133140,14 +133212,7 @@ var __webpack_modules__ = {
|
|
|
133140
133212
|
}
|
|
133141
133213
|
async function maybeUseVue(projectPath, mode = 'development') {
|
|
133142
133214
|
if (!isUsingVue(projectPath)) return;
|
|
133143
|
-
const canResolveVueLoader = ()=>
|
|
133144
|
-
try {
|
|
133145
|
-
require.resolve('vue-loader');
|
|
133146
|
-
return true;
|
|
133147
|
-
} catch {
|
|
133148
|
-
return false;
|
|
133149
|
-
}
|
|
133150
|
-
};
|
|
133215
|
+
const canResolveVueLoader = ()=>Boolean(resolveInAnyContext(projectPath, 'vue-loader'));
|
|
133151
133216
|
if (!canResolveVueLoader()) {
|
|
133152
133217
|
const vueDependencies = [
|
|
133153
133218
|
'vue-loader',
|
|
@@ -133158,13 +133223,15 @@ var __webpack_modules__ = {
|
|
|
133158
133223
|
if (!canResolveVueLoader()) throw new Error('[Vue] Dependencies were installed, but vue-loader is still unavailable in this runtime.');
|
|
133159
133224
|
if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_4.Jv('Vue'));
|
|
133160
133225
|
}
|
|
133161
|
-
const VueLoaderPlugin = getVueLoaderPlugin();
|
|
133226
|
+
const VueLoaderPlugin = getVueLoaderPlugin(projectPath);
|
|
133162
133227
|
if (!VueLoaderPlugin) throw new Error('[Vue] vue-loader is installed but VueLoaderPlugin could not be resolved.');
|
|
133163
133228
|
const customOptions = await (0, _js_frameworks_lib_load_loader_options__rspack_import_6.g)(projectPath, 'vue');
|
|
133229
|
+
const vueLoaderPath = resolveInAnyContext(projectPath, 'vue-loader');
|
|
133230
|
+
if (!vueLoaderPath) throw new Error('[Vue] vue-loader is installed but its loader path could not be resolved.');
|
|
133164
133231
|
const defaultLoaders = [
|
|
133165
133232
|
{
|
|
133166
133233
|
test: /\.vue$/,
|
|
133167
|
-
loader:
|
|
133234
|
+
loader: vueLoaderPath,
|
|
133168
133235
|
options: {
|
|
133169
133236
|
experimentalInlineMatchResource: true,
|
|
133170
133237
|
...customOptions || {}
|
|
@@ -134551,14 +134618,6 @@ var __webpack_modules__ = {
|
|
|
134551
134618
|
"use strict";
|
|
134552
134619
|
module.exports = require("@rspack/dev-server");
|
|
134553
134620
|
},
|
|
134554
|
-
"@rspack/plugin-preact-refresh" (module) {
|
|
134555
|
-
"use strict";
|
|
134556
|
-
module.exports = require("@rspack/plugin-preact-refresh");
|
|
134557
|
-
},
|
|
134558
|
-
"@rspack/plugin-react-refresh" (module) {
|
|
134559
|
-
"use strict";
|
|
134560
|
-
module.exports = require("@rspack/plugin-react-refresh");
|
|
134561
|
-
},
|
|
134562
134621
|
"adm-zip" (module) {
|
|
134563
134622
|
"use strict";
|
|
134564
134623
|
module.exports = require("adm-zip");
|
|
@@ -134663,10 +134722,6 @@ var __webpack_modules__ = {
|
|
|
134663
134722
|
"use strict";
|
|
134664
134723
|
module.exports = require("util");
|
|
134665
134724
|
},
|
|
134666
|
-
"vue-loader" (module) {
|
|
134667
|
-
"use strict";
|
|
134668
|
-
module.exports = require("vue-loader");
|
|
134669
|
-
},
|
|
134670
134725
|
"webpack-merge" (module) {
|
|
134671
134726
|
"use strict";
|
|
134672
134727
|
module.exports = require("webpack-merge");
|
|
@@ -134677,7 +134732,7 @@ var __webpack_modules__ = {
|
|
|
134677
134732
|
},
|
|
134678
134733
|
"./package.json" (module) {
|
|
134679
134734
|
"use strict";
|
|
134680
|
-
module.exports = JSON.parse('{"rE":"3.7.0-canary.
|
|
134735
|
+
module.exports = JSON.parse('{"rE":"3.7.0-canary.178.ff75286","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"}}');
|
|
134681
134736
|
}
|
|
134682
134737
|
};
|
|
134683
134738
|
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.
|
|
27
|
+
"version": "3.7.0-canary.178.ff75286",
|
|
28
28
|
"description": "Develop, build, preview, and package Extension.js projects.",
|
|
29
29
|
"author": {
|
|
30
30
|
"name": "Cezar Augusto",
|