kpdecker
b2e3a73e2f
Use generic name for templateObject
...
Rather than using variable names that could be quite long, just use indexed generic names that use runtime lookup for the string parameter mapping.
2015-07-19 10:39:38 +03:00
kpdecker
eed750206c
Convert template objects to singletons
...
Create file-scoped template objects that are instantiated once and reused between different tagged template evaluations. This is a closer match to the spec behavior which demands reuse, but does not match the spec exactly with respect to scoping as it’s possible to have similar template objects defined in different file scopes within the same program. For now we are not able to cleanly handle this case as it would require a registry or similar lookup mechanism that is consistent across different combinations of builds and optimizers.
This has a 40x increase in six-speed throughput.
Partial fix for #971
2015-07-19 09:49:40 +03:00
Sebastian McKenzie
13e0c6b917
remove useless call from flow strip directives test
2015-07-17 01:01:22 +01:00
Sebastian McKenzie
4833dad4e2
fix comments containg @flow being completely removed from output rather than just the specific directive - fixes #2022
2015-07-17 00:58:08 +01:00
Sebastian McKenzie
32ad452b78
v5.7.3
2015-07-16 22:45:06 +01:00
Sebastian McKenzie
185fc3b10e
add in dummy src file because i'm dumb and decided to do access private apis - closes #2020 , fixes #2011
2015-07-16 22:43:43 +01:00
Sebastian McKenzie
676d602a8b
v5.7.2
2015-07-15 20:35:57 +01:00
Sebastian McKenzie
d2ce03e82d
flow parser plugin: move up startPos and startLoc default assignments
2015-07-15 20:33:56 +01:00
Sebastian McKenzie
d661e15ce2
force push newline for line comments when in compact mode - fixes #2006
2015-07-15 20:23:24 +01:00
Sebastian McKenzie
1abaf66ac2
generator: set adjustMultilineComment to false when compact is true - fixes #2008
2015-07-15 20:18:27 +01:00
Sebastian McKenzie
afacd62738
rewrite async function parsing, properly parse flow return types of arrow functions - fixes #1991
2015-07-15 20:08:10 +01:00
Sebastian McKenzie
4b276b938b
add feature flag for es7.exponentiationOperator
2015-07-15 18:07:25 +01:00
Sebastian McKenzie
b520a33195
remove dead babylon code
2015-07-15 18:07:13 +01:00
Sebastian McKenzie
dbf320f6f0
Merge branch 'master' into development
2015-07-15 17:10:58 +01:00
Sebastian McKenzie
805a44d55d
v5.7.1
2015-07-15 17:09:26 +01:00
Sebastian McKenzie
a051146ae2
add back NodePath#replaceWithSourceString method - fixes pangratz/ember-cli-htmlbars-inline-precompile/issues/18
2015-07-15 17:08:21 +01:00
Sebastian McKenzie
3acae3d625
finish removal of ecmaVersion option
2015-07-15 16:41:32 +01:00
Sebastian McKenzie
472b079862
remove ecmaVersion <= 6
2015-07-15 15:34:47 +01:00
Sebastian McKenzie
124e30face
complete builder definitions - fixes #1982
2015-07-15 14:07:16 +01:00
Sebastian McKenzie
8d70ab5853
switch node definitions to a DSL
2015-07-15 13:51:47 +01:00
Sebastian McKenzie
4656801673
add check for options existence before trying to look for deprecation supression property - fixes #1992
2015-07-15 12:15:15 +01:00
Sebastian McKenzie
aef2be54dc
v5.7.0
2015-07-15 11:53:46 +01:00
Sebastian McKenzie
9e81dd299d
add postpublish script
2015-07-15 11:45:11 +01:00
Sebastian McKenzie
afbd9a0870
fix babel-runtime dist require locations
2015-07-15 11:44:27 +01:00
Sebastian McKenzie
61d246cb9a
v5.6.23
2015-07-15 11:23:07 +01:00
Sebastian McKenzie
e677e49638
really fix spread inside the RHS of a destructuring assignment causing invalid unpack optimisation
2015-07-14 22:18:30 +01:00
Sebastian McKenzie
7fb3158be7
deopt on spread elements when performing array destructuring unpack optimisation
2015-07-14 22:08:26 +01:00
Sebastian McKenzie
45e1eb343b
fix locations in build-dist babel-runtime script
2015-07-14 21:35:59 +01:00
Sebastian McKenzie
0a9f43aac8
fix templates location
2015-07-14 21:33:29 +01:00
Sebastian McKenzie
6e518d40bf
fix babel-core dependency in babel-cli
2015-07-14 21:15:06 +01:00
Sebastian McKenzie
bfe92a4eea
add comments: false to generation test
2015-07-14 21:10:35 +01:00
Sebastian McKenzie
66c29acb78
complete publish script
2015-07-14 21:09:27 +01:00
Sebastian McKenzie
e50babe916
add shouldPrintComment option and output comments when compact option is set to true - fixes #1810
2015-07-14 20:55:56 +01:00
Sebastian McKenzie
eb8d7e679e
fix use strict parsing
2015-07-14 17:14:32 +01:00
Sebastian McKenzie
e294b76a06
add extensions to babel-cli bin files
2015-07-14 17:14:10 +01:00
Sebastian McKenzie
8360001b96
add npmignore to babylon
2015-07-14 16:48:43 +01:00
Sebastian McKenzie
be09f12e42
sync tests with upstream acorn
2015-07-14 15:15:36 +01:00
Sebastian McKenzie
d73938ee89
elaborate on babylon readme
2015-07-14 15:14:57 +01:00
Sebastian McKenzie
2f212cea0a
v5.6.21
2015-07-13 23:37:01 +01:00
Sebastian McKenzie
2d5d1ceb5c
t
2015-07-13 16:34:43 +01:00
Sebastian McKenzie
1948946a4d
add scripts
2015-07-12 12:51:20 +01:00
Sebastian McKenzie
7a268c95a5
remove dead files
2015-07-12 12:35:53 +01:00
Sebastian McKenzie
3d21b85d87
add +x bin files that reference the compiled ones
2015-07-12 12:35:49 +01:00
Sebastian McKenzie
ada45d5800
add missing semicolons
2015-07-12 00:36:21 +01:00
Sebastian McKenzie
16502488b9
Merge branch 'master' into top-secret
...
# Conflicts:
# packages/babel/src/util.js
# src/babel/tools/protect.js
# src/babel/transformation/transformers/internal/explode.js
2015-07-11 23:00:28 +01:00
Sebastian McKenzie
f9498d7a2d
Merge branch 'master' into top-secret
...
# Conflicts:
# packages/babylon/src/options.js
# src/acorn/plugins/flow.js
# src/acorn/src/util.js
2015-07-11 21:04:33 +01:00
Sebastian McKenzie
a226641631
more architectural changes
2015-07-11 20:56:26 +01:00
Sebastian McKenzie
afe5eb118c
add .babelignore support to be more inline with other tools
2015-07-11 20:56:07 +01:00
Sebastian McKenzie
be44e608e7
allowing specifying of babelrc config via package.json - closes #1818
2015-07-11 16:21:08 +01:00
Sebastian McKenzie
fedf894904
Begin transition of Babel to a more scalable architecture, async flow to allow for RPC and better build system for multiple packages
2015-07-11 12:39:54 +01:00