Skip to content

Commit

Permalink
Merge pull request #2533 from microsoft/fix(49842)
Browse files Browse the repository at this point in the history
Fix(49842): import.meta.url error fix
  • Loading branch information
navya9singh authored Sep 15, 2022
2 parents 8f65b8a + 62f1632 commit acd01d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playground/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ export const setupPlayground = (
ui.flashInfo(i("play_esm_mode"))
}, 300)

const nextRes = moduleNumber === 199 ? 99 : 2
sandbox.setCompilerSettings({ target: 99, moduleResolution: nextRes })
const nextRes = moduleNumber === 199 || 100 ? 99 : 2
sandbox.setCompilerSettings({ target: 99, moduleResolution: nextRes, module: moduleNumber })
sandbox.addLibraryToRuntime(JSON.stringify({ name: "playground", type: "module" }), "/package.json")
}
})
Expand Down

0 comments on commit acd01d8

Please sign in to comment.