41 Commits

Author SHA1 Message Date
Mateusz Burzyński
859ea4b175 Scoped: updated numerous docs with scoped packages change [skip ci] 2017-10-16 22:49:57 -04:00
Mateusz Burzyński
47fa189053 Scoped: update more babel- to @babel/ [skip ci] 2017-10-16 22:49:56 -04:00
Nicolò Ribaudo
18dcdc958b export foo -> module.exports = foo in runtime helers (#6366) 2017-10-02 17:40:55 -04: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
ed6e6fd7dd Export babel-runtime helpers as standard CommonJS. 2017-09-26 11:28:57 -07:00
Logan Smyth
fec79e358c Ensure that Program nodes have a sourceType. 2017-09-19 14:50:42 -07:00
Logan Smyth
f35cf8185b Change usage of flag that was renamed. 2017-09-15 11:43:08 -07:00
Logan Smyth
158e9fbfd7 Represent helpers as simple modules. 2017-09-12 22:15:16 -07:00
Henry Zhu
7a1ccf076c Misc (#5545)
* normalize npmignores

* fixup eslint ignore, etc

* lint

* remove unused

* rm from gitignore

* use strict
2017-03-25 21:46:16 -04:00
azrael25
0eb898d95b fix babel-runtime helpers gererator (#5539) 2017-03-24 08:56:41 -04:00
Jason Julian
640515b3f6 removed unused alias in babel-runtime (#5516) 2017-03-22 20:03:35 -04:00
Henry Zhu
26b9f9ed15 commit one helper to git to check regressions 2017-03-22 18:18:08 -04:00
Henry Zhu
483958b24d fix runtime helpers
Ref f3f907bdb3 (diff-339968af11c78f10673c78c6c7568d2fR34)
2017-03-22 18:07:11 -04:00
Henry Zhu
534f621183 remove unused use of removed util class 2017-03-17 10:41:19 -04:00
Diogo Franco (Kovensky)
8dc2176a04 Fix Node 4 parse errors 2017-03-10 16:36:20 +09:00
Diogo Franco (Kovensky)
cf5ab16ff9 Add useBuiltIns and useESModules options to transform-runtime
useBuiltIns uses versions of the helpers that do not import even
internal polyfills from core-js.

useESModules uses versions of the helpers that do not go through
transform-es2015-modules-commonjs. This allows for smaller builds in
module systems like webpack, as it doesn't need to preserve commonjs
semantics.

This includes changes to the babel-runtime build-dist script, which
will build the versions of the runtime helpers to be used by
combinations of useBuiltIns and useESModules.
2017-03-10 16:27:35 +09:00
Kai Cataldo
e09ea222c9 Remove babel-runtime from packages' dependencies (#5218) 2017-01-27 09:04:35 -05:00
Vivek Kumar Bansal
728072f47b [7.0] Remove old babel-runtime code (#5187) 2017-01-21 11:25:29 -05:00
Logan Smyth
e18dc7a6d3 Avoid destructuring in untranspiled script. 2017-01-15 13:54:54 -08:00
Andres Suarez
658f13e030 Replace uses of "lodash/each" with native equivalents 2017-01-15 13:54:54 -08:00
Andres Suarez
85b3aec747 Use native or lodash util module where full "lodash" is required 2017-01-15 13:35:00 -08:00
Henry Zhu
c5836b0bc2 Misc: remove unused devDep [skip ci] 2016-07-25 09:44:44 -04:00
Ben Newman
b3acf9100e Make babel-runtime use regenerator-runtime from npm. (#3494)
The source repository for regenerator-runtime can now be found at
https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime

This also removes the babel-regenerator-runtime package, now that the only
difference between it and regenerator-runtime has been resolved:
bc8d2d672c
2016-05-28 19:04:48 -04: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
Denis Pushkarev
e50be68400 add special case for legacy modules to the runtime build script 2016-02-09 15:28:17 +06:00
Logan Smyth
d2ee421941 Make runtime point at itself and avoid nesting helpers - fixes T6644 2015-12-06 09:56:50 -08:00
Logan Smyth
b9e675597c Make alternate compat names load from main helpers 2015-12-05 23:57:35 -08:00
Sebastian McKenzie
983ca5c71f add function.sent 2015-11-17 23:02:21 -08:00
Sebastian McKenzie
fe5aff09a4 fix remaining babel helper issues 2015-11-11 22:45:50 -08:00
Sebastian McKenzie
0df276272a add progress bar to bootstrap script and clean up the output 2015-11-08 23:04:29 -08:00
Sebastian McKenzie
5589a583c8 don't use absolute paths when importing the runtime definitions, instead just export it - fixes #2909 2015-11-08 02:44:05 -08:00
Sebastian McKenzie
f72802bec9 hoist requires required for core-js build-dist 2015-10-30 17:58:49 +00:00
Sebastian McKenzie
c91509b87a Merge pull request #2651 from babel/thejameskyle-patch-1
Remove unused Lodash import
2015-10-30 17:57:22 +00:00
Sebastian McKenzie
e92b0cad69 move up core-js in babel-runtime build-dist 2015-10-30 17:54:10 +00:00
James Kyle
1a772d5cbf Remove unused Lodash import 2015-10-29 21:26:44 -07:00
Sebastian McKenzie
a9b1c3ee52 fix plugin reference 2015-10-29 18:43:02 +00:00
Sebastian McKenzie
ae7d5367f1 6.0.0
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
b7c91178a9 fix babel-runtime build-dist requires 2015-09-01 05:00:24 +01:00
Sebastian McKenzie
afbd9a0870 fix babel-runtime dist require locations 2015-07-15 11:44:27 +01:00
Sebastian McKenzie
45e1eb343b fix locations in build-dist babel-runtime script 2015-07-14 21:35:59 +01:00
Sebastian McKenzie
2d5d1ceb5c t 2015-07-13 16:34:43 +01:00