extension-develop 4.1.13 → 4.1.14
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/0~rspack-config.mjs +2 -0
- package/dist/101.mjs +6 -1
- package/dist/77.mjs +9 -4
- package/dist/80.mjs +6 -4
- package/package.json +1 -1
package/dist/0~rspack-config.mjs
CHANGED
|
@@ -3105,6 +3105,8 @@ async function maybeUsePreact(projectPath) {
|
|
|
3105
3105
|
const preactJsxRuntime = resolveFromProject('preact/jsx-runtime');
|
|
3106
3106
|
const preactJsxDevRuntime = resolveFromProject('preact/jsx-dev-runtime');
|
|
3107
3107
|
const alias = {};
|
|
3108
|
+
if (preactJsxRuntime) alias['preact/jsx-runtime'] = preactJsxRuntime;
|
|
3109
|
+
if (preactJsxDevRuntime) alias['preact/jsx-dev-runtime'] = preactJsxDevRuntime;
|
|
3108
3110
|
if (preactDir) alias.preact = preactDir;
|
|
3109
3111
|
if (preactCompat) {
|
|
3110
3112
|
alias.react = preactCompat;
|
package/dist/101.mjs
CHANGED
|
@@ -124,6 +124,11 @@ function findConfigFileIn(dir) {
|
|
|
124
124
|
return candidates.find((p)=>__rspack_external_node_fs_5ea92f0c.existsSync(p));
|
|
125
125
|
}
|
|
126
126
|
function resolveManifestDir(projectPath) {
|
|
127
|
+
try {
|
|
128
|
+
if (!__rspack_external_node_fs_5ea92f0c.statSync(projectPath).isDirectory()) return;
|
|
129
|
+
} catch {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
127
132
|
try {
|
|
128
133
|
const structure = resolveProjectStructureSync(projectPath, {
|
|
129
134
|
quiet: true
|
|
@@ -347,7 +352,7 @@ async function isUsingExperimentalConfig(projectPath) {
|
|
|
347
352
|
}
|
|
348
353
|
return false;
|
|
349
354
|
}
|
|
350
|
-
var package_namespaceObject = /*#__PURE__*/ JSON.parse('{"rE":"4.1.
|
|
355
|
+
var package_namespaceObject = /*#__PURE__*/ JSON.parse('{"rE":"4.1.14","El":{"@prefresh/core":"1.5.9","@prefresh/utils":"1.2.1","@rspack/core":"^2.1.1","@rspack/dev-server":"2.1.0","@rspack/plugin-preact-refresh":"2.0.1","@rspack/plugin-react-refresh":"2.0.2","@vue/compiler-sfc":"3.5.26","acorn":"^8.16.0","browser-extension-manifest-fields":"^2.3.1","case-sensitive-paths-webpack-plugin":"^2.4.0","content-security-policy-parser":"^0.6.0","dotenv":"^17.2.3","es-module-lexer":"^2.1.0","extension-from-store":"^0.2.5","fflate":"^0.8.3","go-git-it":"^5.1.5","ignore":"^7.0.5","less":"4.6.7","less-loader":"13.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","postcss":"8.5.23","postcss-loader":"8.2.1","postcss-preset-env":"11.1.1","postcss-scss":"4.0.9","preact":"10.27.3","prefers-yarn":"2.0.1","react-refresh":"0.18.0","sass-loader":"17.0.0","schema-utils":"^4.3.3","svelte-loader":"3.2.4","tiny-glob":"^0.2.9","vue":"3.5.26","vue-loader":"17.4.2","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.20.1"}}');
|
|
351
356
|
function sanitize(obj) {
|
|
352
357
|
return Object.fromEntries(Object.entries(obj || {}).filter(([, value])=>void 0 !== value));
|
|
353
358
|
}
|
package/dist/77.mjs
CHANGED
|
@@ -377,17 +377,22 @@ function managedDependencyConflict(duplicates, userPackageJsonPath) {
|
|
|
377
377
|
const list = duplicates.map((d)=>`- ${pintor.yellow(d)}`).join('\n');
|
|
378
378
|
return `${getLoggingPrefix('error')} Your project declares dependencies that Extension.js already manages, so the build was aborted.\n${pintor.red('Duplicate declarations can cause version conflicts and break the build.')}\n\n${pintor.gray('Remove these from your package.json:')}\n${list}\n\n${pintor.gray('PATH')} ${pintor.underline(userPackageJsonPath)}\nIf you need a different version, open an issue so we can consider bundling it safely.`;
|
|
379
379
|
}
|
|
380
|
+
function isUrlShaped(target) {
|
|
381
|
+
return /^(?:\.[\\/])?[a-z][a-z0-9+.-]+:[\\/]+/i.test(target);
|
|
382
|
+
}
|
|
380
383
|
function findUpLocalSync(filename, options) {
|
|
381
|
-
|
|
382
|
-
|
|
384
|
+
if (isUrlShaped(options.cwd)) return;
|
|
385
|
+
const root = __rspack_external_node_path_c5b9b54f.parse(__rspack_external_node_path_c5b9b54f.resolve(options.cwd)).root;
|
|
386
|
+
let currentDir = __rspack_external_node_path_c5b9b54f.resolve(options.cwd);
|
|
383
387
|
while(true){
|
|
384
388
|
const candidate = __rspack_external_node_path_c5b9b54f.join(currentDir, filename);
|
|
385
389
|
try {
|
|
386
390
|
const stat = __rspack_external_node_fs_5ea92f0c.statSync(candidate);
|
|
387
391
|
if (stat.isFile()) return candidate;
|
|
388
392
|
} catch {}
|
|
389
|
-
|
|
390
|
-
currentDir
|
|
393
|
+
const parentDir = __rspack_external_node_path_c5b9b54f.dirname(currentDir);
|
|
394
|
+
if (currentDir === root || parentDir === currentDir) return;
|
|
395
|
+
currentDir = parentDir;
|
|
391
396
|
}
|
|
392
397
|
}
|
|
393
398
|
function findNearestPackageJsonSync(manifestPath) {
|
package/dist/80.mjs
CHANGED
|
@@ -181,13 +181,15 @@ function findNearestProjectManifestSync(manifestPath) {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function findNearestDenoConfigSync(manifestPath) {
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
if (/^(?:\.[\\/])?[a-z][a-z0-9+.-]+:[\\/]+/i.test(manifestPath)) return null;
|
|
185
|
+
const root = __rspack_external_node_path_c5b9b54f.parse(__rspack_external_node_path_c5b9b54f.resolve(manifestPath)).root;
|
|
186
|
+
let currentDir = __rspack_external_node_path_c5b9b54f.dirname(__rspack_external_node_path_c5b9b54f.resolve(manifestPath));
|
|
186
187
|
while(true){
|
|
187
188
|
const found = findDenoConfigPath(currentDir);
|
|
188
189
|
if (found) return found;
|
|
189
|
-
|
|
190
|
-
currentDir
|
|
190
|
+
const parentDir = __rspack_external_node_path_c5b9b54f.dirname(currentDir);
|
|
191
|
+
if (currentDir === root || parentDir === currentDir) return null;
|
|
192
|
+
currentDir = parentDir;
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
195
|
function validateDenoConfig(denoConfigPath) {
|