Huáng Jùnliàng
298c9a6c33
Add filename to transform error ( #10511 )
...
* polish: use “unknown” as a default filename in buildCodeFrameError
* feat: add filename to transform error
* fix: incorrect warning message
* fix: add filename to generate phrase error message
* address review comment from Nicolò
2019-10-01 17:19:29 +02:00
Nicolò Ribaudo
b459f6a0a4
Add windows to travis ( #10249 )
...
* Add windows to travis
* Update
* Do not use sh file on windows
* Fix whitespace
* Unify command
* ./ doesn't work on windows
* Remove all ./ usages
* Run windows test before others
* fix: normalize filename when generating sources
sources should be URL.
* fix: replace normalized path to cwd
* chore: add nodePlatform task options
* fix: normalize preset-env filename output
* chore: replace normalized path to CWD on win32 platform
* limit transform-react-source to run on linux and darwin
* test: escapeRegExp on testcases
* test: add test for babel --filename on windows
* test: double babel-node/cli test timeout
* chore: workaround windows build does not stop
* chore: remove redundant condition
* refactor: rename `nodePlatform` to `os`
2019-09-26 20:59:17 +02:00
Corey Farrell
cc080417b9
chore: Upgrade source-map to 0.6.1 ( #10446 )
2019-09-24 02:01:32 +02:00
Nicolò Ribaudo
b9cb4af953
v7.6.2
2019-09-23 23:14:37 +02:00
Huáng Jùnliàng
af04f40ee0
fix: pass optionLoc when validating plugin object ( #10402 )
2019-09-11 12:23:20 +02:00
Nicolò Ribaudo
6a5cee8f27
Remove circular dependency ( #10405 )
...
* Remove circular dependency
* Move @babel/runtime test to @babel/runtime
2019-09-08 22:53:42 +02:00
Nicolò Ribaudo
cbd5a26e57
v7.6.0
2019-09-06 19:25:16 +02:00
Huáng Jùnliàng
8da9d8b4b8
feat(errors): validate preset when filename is absent ( #10181 )
...
* feat(errors): validate preset when filename is absent
Closes #10154
* fix: test overrides for filename compulsory
* docs: rewrite validate error message
per https://github.com/babel/babel/pull/10181#discussion_r301607986
* polish error message
2019-09-06 18:09:19 +02:00
Nicolò Ribaudo
f0c2364d01
Do not delete "fake" source map comments from strings ( #9960 )
...
Instead of using `convert-source-map`'s `removeComments` method before
parsing the file, we can first parse the file with `@babel/parser` and then
analyze the comments.
This is needed because it is not possible to reliabily detect comments in
JavaScript without fully parsing the file:
https://github.com/thlorenz/convert-source-map/issues/63
2019-08-14 17:05:55 +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
Nicolò Ribaudo
0407f034f0
v7.5.5
2019-07-17 23:08:08 +02:00
Tan Li Hau
f5ca0587d1
always throw when add missing helpers ( #10208 )
2019-07-12 12:53:55 -05:00
cybai
42000b9907
Upgrade lodash to 4.17.13 ( #10191 )
2019-07-12 10:29:06 +02:00
Nicolò Ribaudo
a9a7f4e690
v7.5.4
2019-07-09 20:52:37 +02:00
Nicolò Ribaudo
49da9a07c8
v7.5.0
2019-07-04 14:52:17 +02:00
Sebastian Johansson
595a349174
Fix incorrect usage of $o instead of %o in debug ( #10157 )
...
It would end up printing the literal "$o" instead of the directory name.
2019-07-03 16:04:31 +02:00
Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02:00
Nicolò Ribaudo
33ab4f1661
v7.4.5
2019-05-21 19:38:26 +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
Pablo Navarro
16e17c560b
Add missing space in error messages ( #9909 )
2019-04-29 19:52:13 +02:00
Nicolò Ribaudo
2c88694388
v7.4.4
2019-04-26 23:00:07 +02:00
Nicolò Ribaudo
508fde4009
v7.4.3
2019-04-02 21:36:09 +02:00
Denis Pushkarev
ae9b25ac69
Add to preset-env ES3 transforms for ES3 targets ( #9781 )
...
* add to preset-env ES3 transforms for ES3 targets
* add `transform-reserved-words`
* fix `transform-reserved-words` plugin in `@babel/standalone`
2019-03-30 23:25:12 +01:00
Daniel Tschinder
a559397feb
Move array reference into for head initializer ( #9698 )
...
* Move array reference into for head initializer
* Update packages/babel-plugin-transform-for-of/src/index.js
Co-Authored-By: danez <daniel@tschinder.de>
* Fix tests
2019-03-23 17:57:17 -07:00
Nicolò Ribaudo
f1328fb913
v7.4.0
2019-03-19 21:27:16 +01:00
Daniel Tschinder
f36a6987e4
Correctly preserve reference to array in for-of loop ( #9697 )
...
* Correctly preserve reference to array in for-of loop
* Add more tests
2019-03-17 21:41:35 -07:00
Nicolò Ribaudo
1f6454cc90
v7.3.4
2019-02-25 19:29:12 +01:00
Nicolò Ribaudo
b8d045f5cf
Update regenerator-transform ( #9558 )
2019-02-21 23:24:31 +01:00
Nicolò Ribaudo
d1fe2d05f4
v7.3.3
2019-02-15 22:06:01 +01:00
Alec
85ea5b0b50
Version bump of lodash ( #9500 )
...
https://tools.cisco.com/security/center/viewAlert.x?alertId=59546
2019-02-13 16:17:39 +01:00
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
Nicolò Ribaudo
c1499b13ac
v7.2.2
2018-12-15 10:59:56 +01: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
Nicolò Ribaudo
282129ea66
v7.2.0
2018-12-03 20:00:35 +01: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
Nicolò Ribaudo
c11cdcb6d8
Fix recursive async function expressions ( #9039 )
...
* Fix recursive async function expressions
* Update fixtures
2018-11-19 17:19:54 +01:00
Logan Smyth
20a9d71016
Normalize presets before merging config with others. ( #9034 )
2018-11-16 21:23:23 -08:00
Nicolò Ribaudo
4e1d6e7ff4
v7.1.6
2018-11-13 22:10:06 +01: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
Daniel Tschinder
74f969b603
Update debug dependency ( #8989 )
2018-11-09 16:27:41 +01:00
Daniel Tschinder
62233ed7c9
Update json5 to latest version ( #8990 )
2018-11-08 17:29:13 -08:00
Henry Zhu
afe67a7035
v7.1.5
2018-11-06 17:21:22 -05: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
Nicolò Ribaudo
38397ce11f
Use toPropertyKey in the "decorate" helper
...
This commit also makes the "toPropertyKey" helper call @@toPrimitive
when needed.
2018-11-02 13:59:57 +01:00
everdimension
e85faec47d
Fix message when plugin of a wrong type is passed ( #8950 )
2018-10-31 14:34:26 -05:00
Henry Zhu
3f5b7554b8
v7.1.2
2018-09-28 18:19:38 -04:00
Henry Zhu
ead23d7112
v7.1.1
2018-09-28 16:02:43 -04:00
Sampo Kivistö
090c364a90
Improved build performance by optimizing makeMappingKey method. ( #8744 )
2018-09-26 13:16:40 -07:00
Henry Zhu
fad74959f8
v7.1.0
2018-09-17 15:29:37 -04:00