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

Better es6 importing #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Better es6 importing #7

wants to merge 3 commits into from

Conversation

heavyk
Copy link

@heavyk heavyk commented Mar 9, 2016

implements behaviour proposed in #6

added more tests too. also can verify that this is working for some large projects. (and it reduced resulting js to half the size!!)

cheers

 - replaces all module require( ‘path’ ) with appropriate __import*__
 - reverses the order of the modules and imports (so there’s a 1-1 mapping to import* and the module array offset)
@heavyk
Copy link
Author

heavyk commented Apr 6, 2016

@Rich-Harris can you merge this? it greatly reduces the output bundle size. it's a pain to maintain this package separately

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.

1 participant