Nicolò Ribaudo
d2af56bcae
Fix helpers dependencies loading
2017-10-19 00:37:09 +02:00
Mateusz Burzyński
859ea4b175
Scoped: updated numerous docs with scoped packages change [skip ci]
2017-10-16 22:49:57 -04: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
35312dc3d2
Track options on the plugin instance to avoid array pair usage.
2017-10-02 14:15:40 -07: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
1938f490b3
Move pipeline file to index.
2017-09-29 11:02:23 -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
ec9754bc40
Implement a new utility module for injecting module imports.
2017-09-26 11:28:56 -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
chocolateboy
605adc922d
allow PluginPass.file.addImport to create empty import statements ( #6022 )
...
* allow PluginPass.file.addImport to create empty import statements; fixes #6021
omitting addImport's second argument creates an import statement with an
empty `specifiers` array i.e. an empty import statement:
plugin:
Program (path, { file }) {
file.addImport('foo-bar/register')
}
output:
import "foo-bar/register";
2017-07-28 12:37:00 -04:00
Justin Ridgewell
28ae47a174
Stop mutating nodes ( #5963 )
...
* Stop mutating nodes
* Update tests
* linting
2017-07-18 13:24:07 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Simen Bekkhus
1e55653ac1
Don't call deprecated code frame export ( #5815 )
2017-06-02 08:49:26 -04:00
Henry Zhu
272209ace5
⬆️ Alpha 12 ( #5808 )
...
* fix usage of codeframe
2017-06-01 15:13:17 -04:00
Logan Smyth
14584c218c
Kill the "shadow-functions.js" internal plugin in favor of an explicit helper ( #5677 )
...
* Handle arrow function processing via shared API rather than default plugin.
* Fix a few small PR comments.
* Preserve existing spec arrow 'this' rewrites, and support spec in subclass constructors.
2017-05-05 13:27:18 -07:00
Logan Smyth
d39400c9d5
Separate config/plugin loading from config processing. ( #5563 )
2017-04-04 14:48:48 -07:00
Henry Zhu
483958b24d
fix runtime helpers
...
Ref f3f907bdb3 (diff-339968af11c78f10673c78c6c7568d2fR34)
2017-03-22 18:07:11 -04:00
Henry Zhu
4901f33423
remove unnecessary call
2017-03-21 13:03:54 -04:00
Logan Smyth
a15de19888
Encapsulate config loading in config/ index file.
2017-03-17 00:04:00 -07:00
Logan Smyth
f3f907bdb3
Remove unneeded helper file.
2017-03-17 00:03:59 -07:00
Logan Smyth
7b5d4fe069
Resolve parser and generator plugins in configuration resolution.
2017-03-17 00:03:59 -07:00
Logan Smyth
b71569ff6c
Remove unneeded util.js file.
2017-03-17 00:03:59 -07:00
Logan Smyth
3e2d731d50
Move the Store class to be inside transformation.
2017-03-17 00:03:59 -07:00
Logan Smyth
12a2124d16
Move the deeply nested option logic to a toplevel folder.
2017-03-17 00:03:58 -07:00
Logan Smyth
6c4810cea5
Move Plugin class to be part of config loading, independent of File.
2017-03-17 00:03:58 -07:00
Logan Smyth
05ee30c9f7
Use the standard option parser to load the internal plugins.
2017-03-17 00:03:58 -07:00
Logan Smyth
38720ae309
Remove store subclassing from Plugin class.
2017-03-17 00:03:58 -07:00
Logan Smyth
bf13ed4da0
Limit where certain arguments are allowed in Babel config.
2017-03-17 00:03:58 -07:00
Logan Smyth
344f0a68c9
Centralize preset processing from two loops to one.
2017-03-17 00:03:57 -07:00
Logan Smyth
62def8da19
Make presets consistently resolve string values relative to their config file location.
2017-03-17 00:03:50 -07: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
Logan Smyth
b6194a8533
Merge pull request #5467 from loganfsmyth/clean-options
...
Misc reorganizing and prep for ignore/only refactoring
2017-03-16 20:25:20 -07:00
Logan Smyth
dd1bc3b183
Resolve programmatic/CLI arguments from cwd, not file being compiled. ( #5466 )
2017-03-14 16:56:00 -07:00
Logan Smyth
bf4664b430
Invert the resolution order of config-chain to process higher-priority items first.
2017-03-14 13:39:57 -07:00
Logan Smyth
738bd54bfb
Move OptionManager calls out of 'new File'.
2017-03-14 13:39:57 -07:00