@mintlify/common 1.0.783 → 1.0.784
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.
|
@@ -258,6 +258,14 @@ function isUnsafeEsm(estree) {
|
|
|
258
258
|
case 'MemberExpression':
|
|
259
259
|
hasUnsafeNode = true;
|
|
260
260
|
return this.skip();
|
|
261
|
+
// Re-exports pull in external modules (e.g. `export { readFileSync } from 'fs'`)
|
|
262
|
+
case 'ExportNamedDeclaration':
|
|
263
|
+
case 'ExportAllDeclaration':
|
|
264
|
+
if ('source' in node && node.source != null) {
|
|
265
|
+
hasUnsafeNode = true;
|
|
266
|
+
return this.skip();
|
|
267
|
+
}
|
|
268
|
+
break;
|
|
261
269
|
}
|
|
262
270
|
},
|
|
263
271
|
});
|