Nicolò Ribaudo
d158a48945
Don't mutate @babel/register options ( #14107 )
2022-01-06 18:37:45 +01:00
Nicolò Ribaudo
e77e3de402
[babel 8] Move @babel/register transform to a separate worker ( #14025 )
2021-12-29 16:33:12 +01:00
Bogdan Savluk
0058b7fef4
Migrate Babel from Flow to TypeScript (except Babel parser) ( #11578 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-11-25 23:09:13 +01:00
overlookmotel
39ba1ff300
Reduce stat calls in register ( #13654 )
2021-08-09 09:14:52 +02:00
Nicolò Ribaudo
d24bd7ce5c
Remove remaining lodash dependencies ( #13139 )
2021-04-13 22:41:22 +02:00
Henry Zhu
6b39bafab6
Remove lodash deps ( #13057 )
...
* inline escapeRegExp instead of using any dep
* inline camelCase
* replace merge with object spread
* copy if array instead of using clone
* inline isRegExp
* review fixes!
* remove escape-string-regexp from package.json and in test
* add error for field defaults that are not primitives or empty arrays
* replace merge with object spread
* yarn
2021-03-27 17:59:34 +01:00
Nicolò Ribaudo
b17231e1af
[internal] Keep the .cjs extension when compiling source files ( #12820 )
...
* [internal] Keep the .cjs extension when compiling
* yarn
2021-02-25 18:03:05 +01:00
Anders Kaseorg
a940c0984f
babel-register: Don’t rewrite the cache if it’s not dirty ( #12813 )
...
This saves time and avoids unnecessary SSD wear.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-02-18 23:36:46 +01:00
Nicolò Ribaudo
4f2d47500f
Don't use require() in ESM files ( #12728 )
...
* Update `yarn-plugin-conditions`
* Don't use `require()` in ESM files
2021-02-01 17:09:02 +01:00
overlookmotel
b727e67347
babel-register run default register with global module cache ( #12674 )
...
Follow-up to PR #12665 .
2021-01-25 21:51:16 +01:00
Henry Zhu
464a02ffe1
[babel 8] Replace lodash/escapeRegExp with escape-string-regexp ( #12677 )
...
Co-authored-by: James Addison <jay@jp-hosting.net>
2021-01-23 22:21:34 +01:00
overlookmotel
22eb99bea4
fix: babel-register transform internal dependencies ( #12665 )
...
Closes #11964 , #12662 .
2021-01-22 11:08:20 +01:00
Andrew Neitsch
6892d51472
Add path separator to @babel/register sourceRoot ( #11249 )
2020-03-18 22:34:19 +01:00
Logan Smyth
90bebe7186
Pass the caller.name option in Babel's own callers.
2018-08-20 10:27:54 -07:00
Logan Smyth
c4f67bfa57
Leave it to users to clear the require cache if they want to.
2018-07-14 12:48:58 -07:00
Logan Smyth
a955efa3e3
Ensure that calling register fully resets the state. ( #7930 )
2018-05-14 23:04:56 -07:00
Justin Ridgewell
2afe9404fe
Use Object Spread Syntax ( #7777 )
...
* Use Object Spread Syntax
* Nits
2018-04-23 21:44:27 -04:00
Logan Smyth
1dbed5f458
Have @babel/register explicitly skip re-entrant plugins/presets.
2018-03-25 14:22:32 -07:00
Logan Smyth
9e4dd861ee
Ensure that sourceMapSupport is installed in all branches.
2018-03-25 12:50:35 -07:00
Logan Smyth
a99e9614a6
Resolve the babel-register working directory up front.
2018-02-22 18:48:36 -08:00
Logan Smyth
cfb830b5bd
Overwrite instead of merging babel-register options.
2018-02-22 18:43:47 -08:00
Henry Zhu
82b6ee734b
Revert "make babel injectable in babel-register"
2018-01-30 12:39:38 -05:00
Jan Potoms
b0d8c62d1c
Fix issue where babel was retained
2018-01-25 10:18:02 +01:00
Jan Potoms
0e570eceb2
make babel injectable in babel-register
2018-01-25 08:16:34 +01:00
John-David Dalton
330f9006a7
Add cache.clear() to clear the data reference when cache option is false.
2017-11-10 14:00:55 -08:00
Logan Smyth
4a5d551370
Set babelrc:false on config load for more consistent loading.
2017-11-09 12:26:40 -08:00
Amin Marashi
83cd3fb2c9
Lazy-install sourceMapSupport ( #6651 )
...
* Install sourceMapSupport only when sourceMaps are requested
* Add tests for sourceMapSupport
* Fix sourceMap position for tests
* Fix gen_error file
* fix the test descriptions
* Refactor install sourceMap support
* Run sourceMapSupport only once
* Handle cases where sourceMaps is undefined
2017-11-09 12:20:26 -08:00
Logan Smyth
11d8e0555f
Avoid mutating the passed-in options for babel-register ( #6542 )
2017-10-23 15:49:10 -07:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Logan Smyth
d6ba4d0a24
Only compile files inside the cwd in babel-register. ( #5590 )
2017-09-02 01:07:26 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Daniel Tschinder
fce92fa1ad
Switch to pirates for babel-register. ( #3670 )
...
* Switch to pirates for babel-register.
Pirates is a simple module that enables easy require hooking. It makes sure that your require hook works properly. It also makes the implimentation of babel-register a lot simpler.
For more on pirates: http://ariporad.link/piratesjs
* Use modified version of pirates.
* Switch back to stable version
* Initial tests for babel-register
* Fix tests to work in new test env
* Fix for new ignore behaviour
* Update pirates to 3.0.1
2017-04-24 00:25:44 +02:00
Logan Smyth
9155c613cb
Change babel-register default ignore to cwd content. ( #5583 )
2017-04-04 14:47:49 -07:00
Logan Smyth
a498371005
Ensure the ignore regex is consistent and initialized fully. ( #5534 )
2017-03-23 17:44:03 -04:00
Logan Smyth
39c862c195
Make only/ignore relative to cwd/config file and move only/ignore checking all to core. ( #5487 )
...
* Make only/ignore relative to cwd/config file and move only/ignore checking all to core.
2017-03-16 23:22:43 -07:00
Sven SAULEAU
d328af0aec
feat: export env getter
2017-03-11 20:40:23 +01:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Andres Suarez
658f13e030
Replace uses of "lodash/each" with native equivalents
2017-01-15 13:54:54 -08:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Joakim
aa0aada8ad
Forcing source-map-support module into node environment, so its not tricked by jsdom ( #4607 )
2016-09-29 17:01:31 +02:00
Daniel Tschinder
71dff8c834
Allow overwritting of sourceRoot ( #3685 )
...
Also replaces lodash/extend with Object.assign
2016-09-03 12:12:34 -04:00
Daniel Tschinder
ea69362249
set sourceRoot in babel-register transform ( #3608 )
2016-08-18 22:42:57 +02:00
Henry Zhu
7ee2381955
Revert "Correct source map paths for babel-register." ( #3599 )
2016-07-26 18:07:29 -04:00
Rolf Timmermans
c8bd9e3ffb
Correct source map paths for babel-register. ( #3523 )
2016-07-22 11:11:31 -04:00
Thomas Grainger
a289dfbbab
The config name is sourceMaps not sourceMap ( #3588 )
2016-07-21 10:10:58 +02:00
Jordan Klassen
dc1f40540d
Upgrade to lodash 4 ( #3315 )
...
* Upgrade to lodash 4
* Fix incorrect require in babel-runtime/scripts
* Replace cloneDeep with cloneDeepWith where applicable
2016-05-13 17:15:14 -04:00
Logan Smyth
9843c87573
Fix block statement code style. ( #3493 )
2016-05-02 21:15:37 -04:00
Amjad Masad
2fbe28cc88
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00