We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df3f4a commit 0e1b211Copy full SHA for 0e1b211
packages/app/src/sandbox/eval/npm/fetch-npm-module.js
@@ -311,8 +311,11 @@ export default async function fetchModule(
311
);
312
313
if (foundPath === '//empty.js') {
314
+ // Mark the path of the module as the real module, because during evaluation
315
+ // we don't have meta to find which modules are browser modules and we still
316
+ // need to return an empty module for browser modules.
317
return {
- path: '/node_modules/empty/index.js',
318
+ path: pathUtils.join(currentPath, path),
319
code: 'module.exports = {};',
320
requires: [],
321
};
0 commit comments