meteor / babel

Babel wrapper package for use with Meteor
Other
46 stars 20 forks source link

ability to specify additional dependencies for cache hash creation #9

Closed gadicc closed 8 years ago

gadicc commented 8 years ago

Will be needed for at least a hash on a user's custom .babelrc and maybe other things in the future.

Example usage is as expected (sorry, a few other things snuck into this commit): https://github.com/gadicc/meteor-react-hotloader/commit/cb2fd8a387d1427340e8aa560728d1a12300b3d0

We can discuss more in https://github.com/meteor/meteor/issues/6351.

Update: e.g. need to hash on process.env.BABEL_ENV || process.env.NODE_ENV too, since .babelrc contains env-specific configs. Could use to pass an optional preferential sourceHash to speed up hashing (as per #8)