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 85c6af9 commit 4b6aad5Copy full SHA for 4b6aad5
packages/app/src/sandbox/eval/transpiled-module.js
@@ -816,6 +816,10 @@ export default class TranspiledModule {
816
try {
817
// eslint-disable-next-line no-inner-declarations
818
function require(path: string) {
819
+ if (path === '') {
820
+ throw new Error('Cannot import an empty path');
821
+ }
822
+
823
const usedPath = manager.getPresetAliasedPath(path);
824
const bfsModule = BrowserFS.BFSRequire(usedPath);
825
0 commit comments