Skip to content

Load all modules and syncify - #97

Merged
Rich-Harris merged 9 commits into
masterfrom
syncify
Aug 24, 2015
Merged

Load all modules and syncify#97
Rich-Harris merged 9 commits into
masterfrom
syncify

Conversation

@Rich-Harris

Copy link
Copy Markdown
Contributor

This is the first part of the plan to address #96 – loading all modules specified by import statements, regardless of whether a given module is destined to end up in the bundle. This is a prerequisite for identifying certain side-effects.

As a consequence we can rewrite a number of methods to be synchronous (and therefore shorter and easier to read), since we only need the async stuff during the initial loading phase.

@Victorystick

Copy link
Copy Markdown
Contributor

This seems great! I've wanted a change like this but been afraid to suggest it. Thought there might have been some clever reason for the lazy-loading.

Rich-Harris added a commit that referenced this pull request Aug 24, 2015
Load all modules and syncify
@Rich-Harris
Rich-Harris merged commit db60e00 into master Aug 24, 2015
@Rich-Harris
Rich-Harris deleted the syncify branch August 24, 2015 21:13
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