Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cli no longer crashes on syntax errors #239

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

jacob-ebey
Copy link
Member

feat: print syntax error location

Copy link
Member

@mjackson mjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@jacob-ebey jacob-ebey merged commit f464f7a into dev Aug 9, 2021
@jacob-ebey jacob-ebey deleted the jacob/rem-180-better-error-handling-in-the-compiler branch August 9, 2021 23:35
@@ -78,7 +78,8 @@ export async function createAssetsManifest(
module: resolveUrl(key),
imports: resolveImports(output.imports)
};
} else {
// Only parse routes otherwise dynamic imports can fall into here and fail the build
} else if (output.entryPoint.startsWith("browser-route-module:")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested this change and it works great for me 👍 I can now use dynamic imports for native ESM modules 👏👏👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants