summaryrefslogtreecommitdiff
path: root/src/dev.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <drew@pow.rs> 2021-03-18 18:10:08 -0600
committerGravatar Drew Powers <drew@pow.rs> 2021-03-18 18:10:08 -0600
commitd75107a20e971ad26a0398229b2b3fd13c45c6ee (patch)
tree850ae9112a20916501e98324b57510ed8785c315 /src/dev.ts
parentd27bd74b055b23a6eb455969755b3ee7f687fd61 (diff)
downloadastro-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.ts4
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;