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 broken metafile with css import from js #504

Merged
merged 1 commit into from
Nov 5, 2020
Merged

Fix broken metafile with css import from js #504

merged 1 commit into from
Nov 5, 2020

Conversation

nitsky
Copy link
Contributor

@nitsky nitsky commented Nov 4, 2020

When a css file is imported from js, esbuild adds a js stub for it. The stub does not have jsonMetadataChunk set on it, because it isn't a real file. The code that generates the metafile does not check for this, which causes it to produce invalid json. This PR adds a check to confirm a file is not a stub before attempting to include it in the "inputs" section of the metafile.

@evanw
Copy link
Owner

evanw commented Nov 5, 2020

Oh no, sorry about that. Thanks for the fix.

@evanw evanw merged commit 1a26747 into evanw:master Nov 5, 2020
evanw added a commit that referenced this pull request Nov 5, 2020
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.

2 participants