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

Fixup return statement asset inlining #59

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Conversation

guybedford
Copy link
Contributor

This fixes up the asset emission case for return '/path/to/asset' inlining the whole return statement and dropping the return keyword.

This was also the root bug for the TypeScript build actually, we just avoided it by workaround the __dirname emission as in this test case, but this fixes the root cause too in case it comes up elsewhere.

@codecov-io
Copy link

Codecov Report

Merging #59 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
- Coverage   76.25%   76.23%   -0.03%     
==========================================
  Files          10       10              
  Lines        1112     1111       -1     
==========================================
- Hits          848      847       -1     
  Misses        264      264
Impacted Files Coverage Δ
src/utils/static-eval.js 72.04% <ø> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fae8baa...198dc31. Read the comment docs.

@guybedford guybedford merged commit aee8cf9 into master Jun 26, 2019
@guybedford guybedford deleted the return-emission branch June 26, 2019 00:07
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants