Commit Graph

8 Commits

Author SHA1 Message Date
Ben Newman
7bcc50c842 Add profiling for meteorInstall-based require calls.
The options.wrapRequire API is new in install@0.8.2.
2016-10-24 18:48:16 -07:00
Ben Newman
70f9dee8f1 Make require.resolve work for built-in modules on the server. 2016-05-19 17:04:09 -04:00
Ben Newman
218a4432b1 Support module.import(id, setters) and module.export(id, getters). 2016-05-19 17:04:09 -04:00
Ben Newman
b3a83bd118 Install reliable stubs for all Package[name] objects.
If a Meteor package had a file called index.js, the runtime module system
would resolve "meteor/<name>" to "/node_modules/meteor/<name>/index.js",
instead of falling back to Package[<name>] as expected.

Installing a stub for Package[<name>] at /node_modules/meteor/<name>.js
means the runtime module system no longer needs the fallback, and will no
longer be confused by index.js files.

Fixes #6590.
2016-04-07 13:05:52 -04:00
Ben Newman
b7b854511f Upgrade install package to remove APIs unused by modules-runtime.
The npm install package has coevolved with the Meteor 1.3 module system,
and now it's time to prune off vestigial features that were never actually
useful to Meteor.
2016-03-11 19:24:27 -05:00
Ben Newman
c9660d9f83 Implement module.useNode() for importing node_modules on the server.
Upgrading the install package to 0.5.6 was vital to enable support for
Module.prototype.useNode: 9eb8351e11
2016-03-07 19:41:15 -05:00
Ben Newman
d475a45580 Implement meteorInstall.addExtension.
This paves the way for enabling additional optional file extensions
beyond .js and .json, such as .coffee, .ts, and .jsx.

Part of #6151.
2016-02-19 18:25:27 -05:00
Ben Newman
f73a2a968a Move implementation of meteorInstall into modules-runtime.
This allows the modules package to use meteorInstall to define itself.
2016-01-18 18:54:56 -05:00