Lars Kappert
a37f2093bc
Merge branch 'master' of github.com:6to5/6to5 into amd-module-id
...
Conflicts:
lib/6to5/file.js
lib/6to5/transformation/modules/umd.js
2014-11-19 08:39:02 +01:00
Sebastian McKenzie
32b32329b2
make umd module formatter inherit amd constructor
2014-11-19 17:50:42 +11:00
Sebastian McKenzie
d4379d52a7
split up generator transformer emit and explode
2014-11-19 17:48:59 +11:00
Sebastian McKenzie
8feb17dd23
normalise whitespace after function keyword
2014-11-19 17:18:05 +11:00
Sebastian McKenzie
7fc2fe41af
fix bug in let scoping resulting in unneccesary replacement - closes #193 , closes #185
2014-11-19 13:46:00 +11:00
Sebastian McKenzie
81ec1e1f42
remove unused variable in generators/meta
2014-11-19 12:54:54 +11:00
Sebastian McKenzie
34599a21cb
clean up common-interop module formatter
2014-11-19 12:40:10 +11:00
Sebastian McKenzie
d9d84c60b5
check for existence of node before checking it in let scoping
2014-11-19 12:13:00 +11:00
Sebastian McKenzie
f43a3dec4b
more regenerator spring cleaning
2014-11-19 12:12:59 +11:00
Richard Eames
6ae03a5dce
Added an interop commonjs loader.
2014-11-18 15:25:12 -07:00
Lars Kappert
9895711bf4
Improve performance
2014-11-18 22:15:02 +01:00
Lars Kappert
d2724554cc
Make module id's for AMD body in UMD optional as well
2014-11-18 22:12:03 +01:00
Lars Kappert
8db466c698
Make AMD module id's optional
2014-11-18 22:04:41 +01:00
Brent Burgoyne
861b9e68d3
Deleted uneeded _runtime.js
2014-11-18 07:13:12 -07:00
Brent Burgoyne
a0eb108cd4
Remove global existence check
2014-11-18 07:10:47 -07:00
Brent Burgoyne
756aef6adc
Instead of returning early, conditionally require actual runtime (./_runtime.js)
...
Fix this error with webpack:
ERROR in ./~/6to5/lib/6to5/transformation/transformers/generators/runtime.js
Module parse failed: /[...]/node_modules/6to5/lib/6to5/transformation/transformers/generators/runtime.js Line 12: Illegal return statement
You may need an appropriate loader to handle this file type.
|
| if (typeof global.regeneratorRuntime === "object") {
| return;
|
}
|
@ ./~/6to5/lib/6to5/polyfill.js 6:0-59
2014-11-18 06:55:39 -07:00
Sebastian McKenzie
7b74c1c8ec
more generator spring cleaning
2014-11-17 17:30:41 +11:00
Sebastian McKenzie
8e115ef3ed
regenerator spring cleaning
2014-11-17 17:04:04 +11:00
Sebastian McKenzie
7bd1337ee8
clean up weird regenerator formatting, only one instance, heaps more to go!
2014-11-17 13:56:42 +11:00
Sebastian McKenzie
c54f530b10
fix up duplicate variables in regenerator
2014-11-17 12:48:35 +11:00
Sebastian McKenzie
d091793077
add generator support let scoping - fixes #178
2014-11-17 04:09:48 +11:00
Sebastian McKenzie
e6baac1003
move regenerator into main repo so we can iterate on it faster and make a bunch of additional changes
2014-11-17 04:09:29 +11:00
Sebastian McKenzie
50333c879c
add comments and change single quotes in amd formatter getModuleName
2014-11-16 19:18:56 +11:00
David Arvelo
f1f7321590
Generate moduleNames for AMD/UMD
2014-11-16 02:38:00 -05:00
Sebastian McKenzie
0dbb24c922
remove unused i variable in default parameters transformer
2014-11-16 14:37:26 +11:00
Sebastian McKenzie
d0a2bd170e
clean up constants transformer
2014-11-16 14:33:37 +11:00
Sebastian McKenzie
69db46f96b
move down and clump constants and let scoping transformer positions
2014-11-16 14:33:29 +11:00
Sebastian McKenzie
a1895b4bb4
implement temporal dead zone for default parameters - fixes #169
2014-11-16 14:32:03 +11:00
Sebastian McKenzie
00483917f0
fix comments not being retained from MethodDefinition in classes
2014-11-16 11:30:05 +11:00
Sebastian McKenzie
542fe89123
fix up tests to work with new member expression keyword generator
2014-11-15 11:23:16 +11:00
Sebastian McKenzie
8503916799
add _memberExpressionKeywords transformer that turns keyword identifiers to computed literals
2014-11-15 11:13:02 +11:00
Sebastian McKenzie
206c828a56
more react compliant whitespace - #165
2014-11-15 11:00:32 +11:00
Sebastian McKenzie
7a261a1db1
fix duplicate let scoping in functions - fixes #166
2014-11-15 09:47:48 +11:00
Sebastian McKenzie
6d1953d9c3
fix constants transformer not accurately checking nodes
2014-11-15 03:07:33 +11:00
Sebastian McKenzie
92621d71c7
remove unused variable
2014-11-15 03:01:58 +11:00
Sebastian McKenzie
9fb8a80f60
support raw property on tagged template literals - closes #164
2014-11-15 03:00:53 +11:00
Sebastian McKenzie
85c2de57e4
fix for-head duplication testing and replacement - fixes #162
2014-11-15 02:50:05 +11:00
Sebastian McKenzie
58fac2e2be
support duplicate constants within different block scopes - fixes #161
2014-11-15 02:49:49 +11:00
Sebastian McKenzie
58898932e6
shift letScoping to before forOf transformer
2014-11-14 19:35:07 +11:00
Sebastian McKenzie
32ddd638ba
Revert "expose moduleName option - closes #158 "
...
This reverts commit fdd1451d530e7d907b0092815adaffef4232e66a.
2014-11-14 18:33:11 +11:00
Sebastian McKenzie
2acb24d43d
block scope classes
2014-11-14 17:19:46 +11:00
Sebastian McKenzie
fdd1451d53
expose moduleName option - closes #158
2014-11-14 17:19:39 +11:00
Sebastian McKenzie
695571b435
fix LetScoping::pushDeclar - fixes #156
2014-11-14 07:34:50 +11:00
Sebastian McKenzie
2b458ec2d4
make it illegal to use destructuring outside of an ExpressionStatement
2014-11-14 00:53:10 +11:00
Sebastian McKenzie
5a794db73b
fix up let scoping transformer comments
2014-11-14 00:52:15 +11:00
Sebastian McKenzie
0917a6a5b1
better destructuring AssignmentExpression error message
2014-11-13 13:42:18 +11:00
Sebastian McKenzie
8ff21b407d
temporarily forbid AssignmentExpression destructuring outside of ExpressionStatement
2014-11-13 13:40:41 +11:00
Sebastian McKenzie
bb00f641b7
remove unused variables in spread transformer
2014-11-12 18:42:24 +11:00
Sebastian McKenzie
25b466a627
remove unused variables
2014-11-12 18:39:50 +11:00
Sebastian McKenzie
458e3d48f6
use Array.from instead of Array.prototype.slice in spread transformer and support NewExpression spreads - fixes #148
2014-11-12 18:38:30 +11:00