Daniel Tschinder
7943a48cc3
Update flow to 0.92.1 and fix related issues ( #9468 )
...
* Update flow to 0.92.1 and fix related issues
* Change isThenable check
2019-02-08 13:27:11 -08: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
Kai Cataldo
806e133473
Export @babel/parser#tokTypes in @babel/core ( #8986 )
...
* Export @babel/parser in @babel/core
* Expose tokTypes instead of parser
2018-11-30 18:41:58 -08:00
Logan Smyth
20a9d71016
Normalize presets before merging config with others. ( #9034 )
2018-11-16 21:23:23 -08:00
Daniel Tschinder
504b331da4
Fix browser files to have the same API as the nodejs ones ( #9004 )
2018-11-09 13:11:46 -08:00
Nicolò Ribaudo
24c4901ff5
Remove Babylon plugins for features already merged to the ECMAScript spec ( #8448 )
...
These are now enabled by default:
- objectRestSpread (2018)
- asyncGenerators (2018)
- optionalCatchBInding (2019)
- jsonStrings (2019)
TODO (after this commit):
- [ ] Deprecate the `@babel/plugin-syntax-*` packages.
- [ ] Deprecate the `@babel/plugin-proposal-*` packages.
- [ ] Create the `@babel/plugin-transform-*` packages.
2018-11-05 23:48:06 +01:00
Logan Smyth
c6d2f45cab
Resolve babel.config.js 'babelrcRoots' values relative to the config file. ( #8910 )
2018-11-05 08:51:27 -08:00
everdimension
e85faec47d
Fix message when plugin of a wrong type is passed ( #8950 )
2018-10-31 14:34:26 -05:00
Sampo Kivistö
090c364a90
Improved build performance by optimizing makeMappingKey method. ( #8744 )
2018-09-26 13:16:40 -07:00
Logan Smyth
aa33303112
Fix logic/Flow error with versionRange. ( #8714 )
2018-09-15 15:37:03 -07:00
Logan Smyth
bd0c62dc0c
Allow users to choose how the configuration root is selected. ( #8660 )
2018-09-15 13:03:46 -07:00
Logan Smyth
13798feefb
Fix prerelease checks in .availableHelper and transform-runtime definitions. ( #8659 )
2018-09-10 18:25:21 -07:00
Logan Smyth
dd985c3be3
Verify 'sourceMap' with hasOwnProperty since it can be falsy.
2018-09-03 12:22:22 -07:00
Logan Smyth
2921f6cdb1
Pass missing caller metadata for .babelrc files. ( #8601 )
2018-09-01 15:46:38 -07:00
Logan Smyth
e0ee0570be
Default highlightCode:true for the parser highlighting. ( #8546 )
2018-08-26 13:23:43 -07:00
tsangint
e875fc7bc1
Update url in buildUnknownError tips ( #8544 )
2018-08-26 15:00:32 +02:00
Nicolò Ribaudo
f8b0a5579f
Remove File#resolveModuleSource ( #8470 )
2018-08-20 12:14:55 -07:00
Logan Smyth
2a4f162366
Merge pull request #8485 from loganfsmyth/caller-option
...
Allow preset-env to toggle module handling based on flags from the caller (like babel-loader)
2018-08-20 10:44:11 -07:00
Yongxu Ren
0fd3da110d
Rewrite Hub as interface #5047
2018-08-20 19:30:29 +02:00
Logan Smyth
8d6ed7e0aa
Expose an api.caller(...) handler for presets to access caller metadata.
2018-08-20 10:27:54 -07: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
2c3c12fdf7
Enforce a limited set of cache key values for plugins/presets for future caching.
2018-08-20 10:12:19 -07:00
Logan Smyth
25d2f59018
Ensure that presets properly flatten their options.
2018-08-20 10:12:19 -07:00
Logan Smyth
3a399d1eb9
Cache individual programmatic descriptors along with the overall list. ( #8494 )
2018-08-20 10:08:21 -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
Logan Smyth
ef68114d67
Fix typo in sourcemap filtering.
2018-08-19 16:37:29 -07:00
Logan Smyth
ca639b4262
Preserve 'false'-options for disabled plugins/presets so that callers can use that to toggle behavior. ( #8474 )
2018-08-19 16:22:27 -07:00
Logan Smyth
ffa8e6cbae
Allow babel-plugin/preset to be in package names outside the prefix, when used in a scope. ( #8473 )
2018-08-16 15:13:52 -07:00
Logan Smyth
9392783738
Remove helpersNamespace in favor of helperGenerator.
2018-08-02 18:44:56 -07:00
Logan Smyth
810b7916c2
Expose an API to check if a helper is available in a given version range.
2018-08-02 18:44:56 -07:00
Qix
db2a9fc96e
Fix order of optional argument reordering ( #8376 )
...
Previously, if the optional `opts` parameter wasn't passed, the _intent_ was to move the function it held into the `callback` parameter and null out the `opts` param - but instead, it was nulling both.
2018-07-26 11:25:35 -04:00
wtgtybhertgeghgtwtg
4346a95b88
Perform check on each member of babelrcroots.
2018-07-24 16:57:24 -07:00
Thiago Arrais
6f3a800677
Do not mutate ast ( #8342 )
...
This clones the given ast prior to working on it to avoid mutating the AST given to `transformFromAST`.
2018-07-23 22:20:55 -04:00
Logan Smyth
6d177ba4c5
Remove micromatch and use a simple pattern matching utility.
2018-07-16 09:57:14 -07:00
Logan Smyth
fd9ebf9e1d
Remove option-filtering options from the final options results. ( #8315 )
...
| Q | A <!--(Can use an emoji 👍 ) -->
| ------------------------ | ---
| Fixed Issues? | Fixes https://github.com/babel/babel-loader/issues/642
| Patch: Bug Fix? | Y
| Major: Breaking Change? | N
| Minor: New Feature? |
| Tests Added + Pass? | Yes
| Documentation PR Link | <!-- If only readme change, add `[skip ci]` to your commits -->
| Any Dependency Changes? |
| License | MIT
Since these were getting left in, things that loaded the config, and then passed in back to Babel would get `test` and such _twice_, which could lead to either bad configuration merging, or no configuration at all if the patterns were relative to different directories, as was the case in https://github.com/babel/babel-loader/issues/642 .
2018-07-13 07:01:11 -07:00
dnalborczyk
db1385fb82
upgrades eslint v5 (major), babel-eslint, eslint-plugin-flowtype, eslint-plugin-prettier ( #8259 )
...
* upgrade eslint v5 (major), babel-eslint (minor), eslint-plugin-flowtype (minor), eslint-plugin-prettier (patch)
* fix makefile: remove (default) .js file extension, remove non-existing glob pattern
* fix linting errors
* add '*.js' glob back to include babel.config.js for linting
2018-07-05 09:17:01 -05:00
Logan Smyth
9bd4b46fd6
Merge pull request #8198 from loganfsmyth/sourcemap-loading
...
Prefer explicit object maps, and properly load relative maps.
2018-07-04 15:39:42 -07:00
Logan Smyth
532c25c8db
Ensure that file-path sourcemaps load relative to the file containing the comment.
2018-06-18 22:06:08 -07:00
Logan Smyth
3c90baaf6c
Prefer object sourcemaps over file-inlined sourcemaps.
2018-06-18 21:49:23 -07:00
Logan Smyth
add5f8d0fe
Allow @foo/babel-plugin as an unexpanded plugin name, and @foo as a shorthand for it.
2018-06-18 21:36:02 -07:00
Brian Ng
5895277b32
Bump prettier to v1.13.2
2018-06-03 07:54:39 -05:00
Brian Ng
f699f1bbbf
flow@0.73.0 ( #8032 )
2018-05-25 16:53:23 -05:00
Logan Smyth
9c707f9670
Update docs
2018-05-24 20:57:44 -07:00
Logan Smyth
53e4d74ebe
Treat all filenames as absolute paths. ( #8044 )
2018-05-24 20:56:19 -07:00
Logan Smyth
0bc3027554
Add a promise version of each of Babel's transform functions.
2018-05-23 21:18:17 -07:00
Logan Smyth
6f3093b557
Track the sync and async implementations in the same files.
2018-05-23 21:18:15 -07:00
Logan Smyth
6b91d6434d
Add a try/catch on inline data-uri sourcemaps too, and add debug logging.
2018-05-22 23:38:16 -07:00
Michael Lavina
18796173ab
feat(sourcemap): parse external source maps when normalizing ( #7980 )
2018-05-22 23:29:10 -07:00
Logan Smyth
eb3334a14e
Merge pull request #7955 from loganfsmyth/typescript-filename-required
...
Verify that files are .ts/.tsx before treating as Typescript files.
2018-05-22 22:41:39 -07:00
Logan Smyth
ca1c98b255
Allow .overrides and .env inside presets.
2018-05-21 18:23:07 -07:00