Huáng Jùnliàng
af04f40ee0
fix: pass optionLoc when validating plugin object ( #10402 )
2019-09-11 12:23:20 +02:00
Daniel Tschinder
4f0840ab88
Update dev dependencies and fix linting errors ( #10228 )
...
* chore: Uppate dev dependencies
* chore: Fix lint errors
* chore: Format options.json files
* chore: Fix stupid flow errors
* Update test262 whitelist
Seems test262-stream was updated and now these tests work.
2019-07-27 15:09:30 +02:00
Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02:00
Divyam Bhasin
7942dc0f07
Fixed null error in plugin opts and added a test for it ( #9945 )
...
* Fixed null error in plugin opts and added a test for it
* Remove !opts and add opts === null check to avoid confusion with false and undefined cases
Co-Authored-By: divbhasin <divbest99@gmail.com>
2019-05-07 16:23:01 +02:00
Daniel Tschinder
4ca35ef8b9
Fix running flow on travis and update flow ( #9128 )
...
* Fix running flow on travis and update flow
- ensure bootstrap is run before running flow as we need some generated files for correctly doing typechecks
- ensure that we only ignore the build directory inside the babel folder as currently we ignore everything because travis checks out into ‘/home/travis/build/’
* Fix all flow errors
2018-12-05 12:30:30 -08:00
Logan Smyth
bd0c62dc0c
Allow users to choose how the configuration root is selected. ( #8660 )
2018-09-15 13:03:46 -07:00
tsangint
e875fc7bc1
Update url in buildUnknownError tips ( #8544 )
2018-08-26 15:00:32 +02:00
Logan Smyth
8f4bae8ea4
Expose optional caller metadata to Babel ignore/only/test/include/exclude functions.
2018-08-20 10:27:54 -07:00
Logan Smyth
c2a2e24965
Take top-level config source into consideration when processing nested env/overrides. ( #8493 )
2018-08-19 21:46:09 -07:00
wtgtybhertgeghgtwtg
4346a95b88
Perform check on each member of babelrcroots.
2018-07-24 16:57:24 -07:00
Logan Smyth
6d177ba4c5
Remove micromatch and use a simple pattern matching utility.
2018-07-16 09:57:14 -07:00
Logan Smyth
ca1c98b255
Allow .overrides and .env inside presets.
2018-05-21 18:23:07 -07:00
Logan Smyth
bdcfb697a6
Use 'babelrc' and 'babelrcRoots' from config file, if not specified.
2018-05-11 17:49:11 -07:00
Logan Smyth
0341d299c8
Validate different file types with different rules.
2018-05-11 16:51:43 -07:00
Logan Smyth
8606b76438
Split babelrc option into babelrcRoots.
2018-04-22 13:00:28 -07:00
Logan Smyth
a67eb25547
Only search for .babelrc files in the 'root' package by default.
2018-04-20 17:00:53 -07:00
Logan Smyth
485e37fcb0
Support a babel.config.fs file in a 'root' directory.
2018-04-20 17:00:53 -07:00
Daniel Tschinder
f0d681a238
Remove obsolete max-len eslint rule and reformat some stuff to fit ( #7602 )
2018-03-20 08:51:47 -05:00
Daniel Tschinder
1d69cd41ca
Fix import of type ConfigItem ( #7561 )
...
It is also exported as type
2018-03-13 13:31:32 -05:00
Logan Smyth
b5e6536f26
Remove the sourceMapTarget option from core and implement it in babel-cli. ( #7500 )
2018-03-09 14:14:25 -08:00
Logan Smyth
fef5c7e523
Expose the partial Babel config for people to load and mutate.
2018-03-07 16:33:25 -08:00
Logan Smyth
ec2e0b664a
Properly allow undefined ignore patterns for test/include/exclude.
2018-02-07 23:23:19 -08:00
Logan Smyth
c292140254
Implement an 'overrides' config array to process in order for overrides.
2018-01-05 12:47:47 -08:00
Logan Smyth
f4a24a38ca
Allow config objects to use test/include/exclude to limit application to specific files.
2018-01-05 12:47:47 -08:00
Logan Smyth
7b861796cf
Centralize validation logic in common folder.
2017-12-21 14:45:19 -08:00