mam 1.11.792 → 1.11.794
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/node.js +2 -2
- package/node.js.map +1 -1
- package/node.mjs +2 -2
- package/node.test.js +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -5955,8 +5955,6 @@ var $;
|
|
|
5955
5955
|
const parent = mod.parent();
|
|
5956
5956
|
const node = this.root().resolve('node');
|
|
5957
5957
|
const node_modules = this.root().resolve('node_modules');
|
|
5958
|
-
if (mod.name().startsWith('node:'))
|
|
5959
|
-
return true;
|
|
5960
5958
|
if ([node, node_modules].includes(parent)
|
|
5961
5959
|
&& mod.name() !== 'node'
|
|
5962
5960
|
&& !mod.name().startsWith('@')) {
|
|
@@ -7288,6 +7286,8 @@ var $;
|
|
|
7288
7286
|
return str;
|
|
7289
7287
|
});
|
|
7290
7288
|
line.replace(/\b(?:require|import)\(\s*['"]([^"'()]*?)['"]\s*\)/ig, (str, path) => {
|
|
7289
|
+
if (path.startsWith('node:'))
|
|
7290
|
+
return str;
|
|
7291
7291
|
$mol_build_depsMerge(depends, { [path]: priority });
|
|
7292
7292
|
return str;
|
|
7293
7293
|
});
|