diff options
author | 2021-03-18 18:10:08 -0600 | |
---|---|---|
committer | 2021-03-18 18:10:08 -0600 | |
commit | d75107a20e971ad26a0398229b2b3fd13c45c6ee (patch) | |
tree | 850ae9112a20916501e98324b57510ed8785c315 /src/dev.ts | |
parent | d27bd74b055b23a6eb455969755b3ee7f687fd61 (diff) | |
download | astro-d75107a20e971ad26a0398229b2b3fd13c45c6ee.tar.gz astro-d75107a20e971ad26a0398229b2b3fd13c45c6ee.tar.zst astro-d75107a20e971ad26a0398229b2b3fd13c45c6ee.zip |
Respect comments when scanning imports
Use es-module-lexer for import scanning in HMX scripts
Diffstat (limited to 'src/dev.ts')
-rw-r--r-- | src/dev.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev.ts b/src/dev.ts index d2a268ef6..524379dd1 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -16,7 +16,7 @@ snowpackLogger.level = 'silent'; const logging: LogOptions = { level: 'debug', - dest: defaultLogDestination + dest: defaultLogDestination, }; export default async function (astroConfig: AstroConfig) { @@ -97,7 +97,7 @@ export default async function (astroConfig: AstroConfig) { res.setHeader('Content-Type', 'text/html; charset=utf-8'); res.end(html); } catch (err) { - switch(err.code) { + switch (err.code) { case 'parse-error': { err.filename = pathRelative(projectRoot.pathname, err.filename); debugger; |