Skip to content

Conversation

@jamesgibson14
Copy link
Owner

No description provided.

benjamn and others added 30 commits November 16, 2017 16:33
By sharing the missing object across multiple calls to module.prefetch,
and waiting until the next tick to call install.fetch, we can batch a
rapid succession of module.prefetch calls into a single call to the
install.fetch callback, potentially resulting in fewer HTTP requests.
This method was a Meteor-specific escape hatch for switching to native
Node evaluation (e.g. for native .node modules) rather than evaluating
bundled modules within the install.js module system.

Starting with Meteor 1.6.2, Meteor will generate stub modules that call
module.useNode() themselves, rather than relying on install.js to check
whether module.useNode is defined and then call it.

Not only is this a much cleaner separation of concerns, it also eliminates
a small amount of performance overhead for every module evaluation, and it
means we won't always switch to native Node evaluation just because we
can, leaving room for bundled code to run instead.
benjamn and others added 26 commits June 25, 2018 15:33
Not only does this simplify the work of makeRequire (which is called just
before every module begins evaluation), but it also removes the need for
options.wrapRequire, since Module.prototype.require can be easily wrapped.
chore(package): update reify to version 0.17.2
* chore(package): update reify to version 0.18.1

Closes #51

* chore(package): update lockfile package-lock.json
Enable retrying dynamic imports after failure.
@jamesgibson14 jamesgibson14 merged commit e12e00a into jamesgibson14:master Jan 11, 2019
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