We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f506e7b commit 5244de2Copy full SHA for 5244de2
1 file changed
apps/site/mdx/create-vfs-twoslasher.mjs
@@ -8,13 +8,11 @@
8
* generated at build time by `scripts/twoslash-fsmap/index.mjs`.
9
*/
10
export async function createVfsTwoslasher() {
11
- const [{ createTwoslasher }, ts, fsMapJson] = await Promise.all([
12
- import('twoslash/core'),
13
- import('typescript').then(m => m.default),
14
- import('../generated/twoslash-fsmap.json', { with: { type: 'json' } }).then(
15
- m => m.default
16
- ),
17
- ]);
+ const { createTwoslasher } = await import('twoslash/core');
+ const ts = (await import('typescript')).default;
+ const fsMapJson = (
+ await import('../generated/twoslash-fsmap.json', { with: { type: 'json' } })
+ ).default;
18
19
const fsMap = new Map(Object.entries(fsMapJson));
20
0 commit comments