diff options
author | 2023-07-18 02:17:59 +0200 | |
---|---|---|
committer | 2023-07-18 02:17:59 +0200 | |
commit | f14e48098a3bc74d85715b5610dbba588d4943cd (patch) | |
tree | 11284e8456c5f7f52fd37d1ad6f488133e883db9 /scripts/utils | |
parent | cc0f81c040e912cff0c09e89327ef1655f96b67d (diff) | |
download | astro-f14e48098a3bc74d85715b5610dbba588d4943cd.tar.gz astro-f14e48098a3bc74d85715b5610dbba588d4943cd.tar.zst astro-f14e48098a3bc74d85715b5610dbba588d4943cd.zip |
nit: use `node:` prefix everywhere (#7692)
* nit: use `node:` prefix everywhere
* nit: fs/promises too
* test: workaround issue in node builtin detection
Diffstat (limited to 'scripts/utils')
-rw-r--r-- | scripts/utils/svelte-plugin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/utils/svelte-plugin.js b/scripts/utils/svelte-plugin.js index 4bbd8cdaf..6781c28a4 100644 --- a/scripts/utils/svelte-plugin.js +++ b/scripts/utils/svelte-plugin.js @@ -1,7 +1,7 @@ // @ts-nocheck +import { promises as fs } from 'node:fs'; +import { dirname, isAbsolute, join, relative } from 'node:path'; import { compile } from 'svelte/compiler'; -import { relative, isAbsolute, join, dirname } from 'path'; -import { promises as fs } from 'fs'; const convertMessage = ({ message, start, end, filename, frame }) => ({ text: message, |