babel/packages
Izaak Schroeder 8d9195f862 Pass dirname as extra metadata to preset constructor. (#4834)
* Pass `dirname` as extra metadata to preset constructor.

Sometimes a preset would like to know where it should resolve relative paths from (e.g. https://github.com/tleunen/babel-plugin-module-resolver) and this extra information makes that possible.

* Test for `dirname` passed into preset constructor

This adds a check for `dirname`’s existence and correctness to the
`resolve-addons-relative-to-file` test, and serves as a minimal example
of a path-aware preset.
2017-02-21 22:13:03 -05:00
..
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-01-19 19:33:22 -05:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2017-02-13 17:14:12 -08:00
2015-10-29 17:51:24 +00:00

Woah, what's going on here?

A monorepo, muhahahahahaha. See the monorepo design doc for reasoning.