Closed bouk closed 8 years ago
Looks great 👍 always bugged me that the configuration was split between different places, this is much better.
:+1:
LGTM 👍
Tried this out yesterday on shopify/shopify
, and I was able to get jQuery split into its own bundle. Thanks for your help with configuration!
This PR adds an
extra_options
(other name proposals welcome) argument to processor, making it possible to configure any path to use a certain set of commoner options, instead of the brittle and not very useful babelrc way of configuring. This also removes configuring commoner in babelrc (this option was hacky and undocumented).You can now set the globals map using something like the following:
This will now also affect everything inside node_modules.
@lemonmade @GoodForOneFare