Simen Bekkhus
f1bc6c4e18
feat: if code frame error is on a single line, highlight the w… ( #10361 )
...
* feat: if code frame error is on a single line, highlight the whole path
* flow
2019-10-29 18:23:54 +01:00
Huáng Jùnliàng
dcf7d89b8e
fix: remove filename annotation in buildCodeFrameError ( #10539 )
2019-10-14 18:19:55 +02:00
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
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
Tan Li Hau
f5ca0587d1
always throw when add missing helpers ( #10208 )
2019-07-12 12:53:55 -05:00
Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02: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
13798feefb
Fix prerelease checks in .availableHelper and transform-runtime definitions. ( #8659 )
2018-09-10 18:25:21 -07:00
Nicolò Ribaudo
f8b0a5579f
Remove File#resolveModuleSource ( #8470 )
2018-08-20 12:14:55 -07:00
Yongxu Ren
0fd3da110d
Rewrite Hub as interface #5047
2018-08-20 19:30:29 +02:00
Logan Smyth
ef68114d67
Fix typo in sourcemap filtering.
2018-08-19 16:37:29 -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
Logan Smyth
0963dbddea
Rely on Babylon for interpreter directive parsing, instead of babel/core.
2018-05-21 18:19:59 -07:00
Logan Smyth
a3e622ad15
Fix inputSourcemapMerge when no JS content is output.
2018-05-01 20:31:29 -07:00
Logan Smyth
cfb386ff03
Reimplement input sourcemap merging.
2018-04-25 12:02:05 -07:00
Logan Smyth
9e7fe0ab49
Add type definitions for source-map library.
2018-04-25 12:02:05 -07:00
Logan Smyth
e31e907d5f
Split sourcemap merging logic into its own file.
2018-04-25 12:02:05 -07:00
Nicolò Ribaudo
252ea5a966
Fix reused nodes - part 2 ( #7149 )
2018-01-29 22:59:06 +01:00
Mateusz Burzyński
912bcc186d
Fix reused nodes - part 1 ( #7149 )
2018-01-29 22:59:06 +01:00
Tim Seckinger
c3f6f7fe28
fix buildCodeFrameError empty code frames
2018-01-03 13:53:15 +11:00
Logan Smyth
0e88156d0c
Add warnings to places where we might allow promises to be returned in later minors.
2017-11-13 11:58:30 -08:00
Logan Smyth
2bfa2eb5cd
Apply option defaults when transforming, not up front.
2017-11-09 12:20:52 -08:00
Logan Smyth
fc7fcfac0a
Expose a clear API for plugins to override the parser/generator.
2017-11-09 10:34:12 -08:00
Logan Smyth
4d7d4605b6
Centralize parserOpts and generatorOpts normalization.
2017-11-08 17:06:01 -08:00
Logan Smyth
39119f88e7
Pass explicit options list to babel-code-frame
2017-11-08 17:00:02 -08:00
Logan Smyth
6684986372
Expose an official API to access the current filename.
2017-11-08 16:48:25 -08:00
Logan Smyth
82513465ee
Pass an explicit whitelist of options down into babel-generator.
2017-11-08 16:41:33 -08:00
Borales
416e9aba39
Providing File.has method for core/transformation package
2017-10-22 00:45:40 +02:00
Nicolò Ribaudo
d2af56bcae
Fix helpers dependencies loading
2017-10-19 00:37:09 +02:00
Henry Zhu
696df10f51
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Henry Zhu
cde0054227
Scoped: change src imports to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00
Logan Smyth
eae76e5b89
Break apart the File class into multiple files and add type definitions.
2017-10-02 13:55:37 -07:00
Logan Smyth
c1df126b83
Remove wrap function and calculate code frames earlier.
2017-10-02 13:48:02 -07:00
Nicolò Ribaudo
977c72250a
Add support for helper dependencies ( #6254 )
...
* Add support for helpers dependencies.
They are used like this:
helpers.main = defineHelper(`
import dep from "dependency";
export default function main() { return dependency; }
`);
helpers.dependency = defineHelper(`ì
export default function dep() { return 0; }
`);
* Clone import references
* Don't make test helpers name depend on the order the tests are run
2017-10-02 10:10:52 -07:00
Logan Smyth
a390a92d6a
Remove unused helpers prop.
2017-09-29 15:17:12 -07:00
Logan Smyth
f20f8b164f
Remove unused module metadata collection.
2017-09-29 15:17:11 -07:00
Logan Smyth
3bac67b4b9
Remove the resolveModuleSource options.
2017-09-29 15:17:11 -07:00
Logan Smyth
8339e036bf
Remove babel.analyse and surrounding helpers.
2017-09-29 15:17:11 -07:00
Logan Smyth
655d1cc91b
Remove unused 'usedHelpers' property.
2017-09-29 15:17:10 -07:00
Logan Smyth
455cb5b8d8
Remove unused file properties.
2017-09-29 11:43:23 -07:00
Logan Smyth
c8835cbbee
Remove unnecessary Store subclass.
2017-09-29 11:05:57 -07:00
Logan Smyth
14ace422c3
Fix two small typoes.
2017-09-26 15:38:55 -07:00
Logan Smyth
5eda451fb8
Remove the unused '.addImports' API from 'babel-core'.
2017-09-26 11:28:57 -07:00
Logan Smyth
5a2a5fb411
Move template object creation from core into the template transform. ( #6307 )
...
* Move template object creation into the template transform.
* use shorthand [skip ci]
2017-09-26 10:33:18 -04:00
Logan Smyth
0379060f8a
addMapping method call missing name parameter ( #6310 )
...
in mergeSourceMap, addMapping method call missing name parameter
2017-09-26 10:24:19 -04:00
Logan Smyth
634c750558
Ensure helpers that reference globals continue to reference the globals properly.
2017-09-12 22:15:16 -07:00
Logan Smyth
158e9fbfd7
Represent helpers as simple modules.
2017-09-12 22:15:16 -07:00
Logan Smyth
47a254025a
Return a unique identifier node for each use.
2017-09-12 17:17:41 -07:00