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
048a5b8021
Reenable Flow in option-manager
2017-09-27 16:37:45 -07:00
Logan Smyth
fc448ca8f2
Flatten, process, and cache incoming options by key.
2017-09-27 11:20:27 -07:00
Logan Smyth
a599c49436
Centralize call to getEnv().
2017-09-26 22:29:48 -07:00
Logan Smyth
7455e58270
Reuse config file merge.
2017-09-26 22:29:34 -07:00
Logan Smyth
9a4b764bde
Centralize config processing in class.
2017-09-26 22:29:32 -07:00
Logan Smyth
2d7cda4d28
Remove unnecessary function.
2017-09-26 22:28:56 -07:00
Logan Smyth
073a0dc823
Split the ignore logic into its own helper class.
2017-09-26 22:28:56 -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
Mateusz Burzyński
4519f95a29
Fixed buildExternalHelpers tool for var and module output types ( #6260 )
2017-09-19 14:44:40 -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
Sven SAULEAU
0c5fae2faa
Make sure source type is module when parsing .mjs ( #5700 )
...
* feat: force source type module for mjs extension
* style: fix lint
2017-09-12 20:59:00 -07:00
Logan Smyth
47a254025a
Return a unique identifier node for each use.
2017-09-12 17:17:41 -07:00
Lukas Geiger
b6467a68ca
Add option to define output directory relative to the input ( #5421 )
...
* Fix output directory if filename is given
* Add test for relative output path
* Add option to define output dir relative to input
* Add tests for --copy-files
* Test error handling for wrong arguments
2017-09-09 20:38:06 -04:00
Mateusz Burzyński
76161e0a73
Added new outputType - module - for build-external-helpers tool. Should help with tree-shaking story. It's strongly influenced by how the helpers are transformed by rollup-plugin-babel. ( #5916 )
2017-08-31 23:44:24 -04:00
Daniel Tschinder
44f6ff5e85
Update prettier, eslint + plugins, flow, husky and lint-staged ( #6183 )
2017-08-31 22:56:29 +02:00
Logan Smyth
2846e06db1
Add dependency cycle handing for plugins and config files.
2017-08-29 14:57:34 -07:00
Logan Smyth
beff7809ea
Add debug() calls for config loading.
2017-08-29 14:57:33 -07:00
Henry Zhu
66ec5263a4
Use Yarn Workspaces ( #6056 )
...
* update lerna and lerna-changelog
* Lerna: enable yarn, yarn workspaces [skip ci]
* use older version of Babel since it matches on semver (cannot be the same version)
* install yarn version
* revert node engine change
* update flow
* circle ci on 8
* update lock
2017-08-05 14:48:15 -04: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
Bradley Farias
7ca81700f7
add .mjs to list of well known extensions
...
this is to conform to the plan of the Node.js EP
2017-05-01 09:43:49 -07:00
Logan Smyth
0eae6a432c
Remove merge helper and add more type declarations. ( #5649 )
2017-04-18 19:08:39 -07:00
Logan Smyth
6af8e64711
Typecheck much more of the config loading process ( #5642 )
...
* Add type declarations for micromatch.
* Enable Flowtype on all config loading.
* Remove unneeded comments.
2017-04-18 09:28:18 -07:00
Logan Smyth
d1d812edff
Fix a regression from adding negation support in #5625 . ( #5641 )
2017-04-17 18:13:37 -07:00
Logan Smyth
2b86d353d6
Restrict Babel's plugins/presets to a single target. ( #5547 )
2017-04-17 11:45:49 -07:00
Logan Smyth
c59e9f5f0e
Merge pull request #5608 from loganfsmyth/config-cache
...
Cache configs based on mtime and allow .babelrc.js functions
2017-04-17 11:43:31 -07:00
Logan Smyth
ad250ef10a
Merge pull request #5602 from loganfsmyth/option-manager-cleanup
...
Refactor OptionManager to be a short class with a bunch of pure helper functions.
2017-04-14 14:25:45 -07:00
Logan Smyth
ccbb2eb8d4
Disallow cache configuration after handler evaluation.
2017-04-14 14:19:20 -07:00
Logan Smyth
2774cb7d42
Allow function-based .babelrc.js files.
2017-04-13 20:17:32 -07:00
Logan Smyth
911027f289
Cache config files based on mtime rather than file content.
2017-04-13 20:17:31 -07:00
Logan Smyth
2163acd6c2
Refactor static file processing with a helper wrapper.
2017-04-13 13:23:36 -07:00
Logan Smyth
a2f334b9e9
Fix issue with #5625
2017-04-12 11:41:54 -07:00
Logan Smyth
d1c954b36f
Allow negation of ignore and only patterns. ( #5625 )
2017-04-12 11:10:33 -07:00
Logan Smyth
248c240998
Use clearer function name.
2017-04-10 10:01:01 -07:00
Logan Smyth
d7e10a3adc
Misc refactoring of OptionManager.
2017-04-10 10:01:01 -07:00
Logan Smyth
d16991054e
Pass the config through mergeOptions.
2017-04-10 10:01:01 -07:00
Logan Smyth
e13320ef73
Separate plugin/preset loading and plugin/preset evaluation.
2017-04-10 10:01:01 -07:00