Sebastian McKenzie
e1d2def4b1
add t.getSpecifierId that handles default specifiers
2015-01-23 23:03:04 +11:00
Sebastian McKenzie
115509653f
remove strict module transformers
2015-01-22 18:39:09 +11:00
Sebastian McKenzie
cfd95a1398
only require imports that are necessary in selfContained
2015-01-22 01:37:28 +11:00
Sebastian McKenzie
ccdb480d44
rename traverser to visitor
2015-01-22 00:28:20 +11:00
Sebastian McKenzie
3205c78f01
ensure that a scope is always passed to traverse and allow scopes to have access to file
2015-01-21 23:52:12 +11:00
Dan Abramov
3d9d842a0d
Extract traversers outside methods
2015-01-21 14:34:47 +03:00
Aluísio Augusto Silva Gonçalves
9d2e12dfa6
Amendments from 6to5/6to5#535 comments
2015-01-19 12:31:47 -02:00
Aluísio Augusto Silva Gonçalves
e985d8b25d
Don't use interopRequire for dynamic imports
...
They don't need it at all and this also allows use of `externalRuntime`
without fear of the runtime ending up being loaded after it's used.
2015-01-18 17:31:55 -02:00
Aluísio Augusto Silva Gonçalves
e8237910e8
Add a transformer to import the runtime from a file
...
The `externalRuntime` optional transformer can be used in conjunction
with the `runtime` option to import and use the runtime from a module
instead of polluting the global environment.
2015-01-18 17:31:52 -02:00
Sebastian McKenzie
36a933a004
add strict mode to every file
2015-01-18 18:44:08 +11:00
Sebastian McKenzie
6240e5111f
add modules common strict formatter - fixes #418
2015-01-08 22:29:24 +11:00
Sebastian McKenzie
8f64fe2332
add extends helper instead of using Object.assign
2015-01-07 22:42:26 +11:00
Lars Kappert
50e5bd4680
Merge remote-tracking branch 'origin/master' into amd-port-interop
...
Conflicts:
test/fixtures/transformation/es6-modules-amd/exports-default/expected.js
test/fixtures/transformation/es6-modules-amd/overview/expected.js
test/fixtures/transformation/es6-modules-umd/exports-default/expected.js
test/fixtures/transformation/es6-modules-umd/overview/expected.js
2015-01-06 20:21:00 +01:00
Sebastian McKenzie
3ec97fc86d
only check if a function is a declaration in common module hoisting
2015-01-06 10:39:18 +11:00
Lars Kappert
abc90778e8
Test for exportIdentifier before building exportDeclaration
2015-01-05 21:17:12 +01:00
Sebastian McKenzie
b81f824b7e
normalise wildcard import into a default object
2015-01-05 00:07:22 +11:00
Sebastian McKenzie
931a80f5b3
rename "declarations" to the more sane "helpers"
2015-01-04 13:34:56 +11:00
Sebastian McKenzie
52e23473ed
allow export default non-functions mapping to module.exports in common module formatter - fixes #356
2015-01-01 22:58:46 +11:00
Sebastian McKenzie
860432cdfd
hoist export default to very top
2015-01-01 22:31:59 +11:00
Sebastian McKenzie
e96d02c972
make traversal code simpler
2014-12-27 17:01:47 +11:00
Sebastian McKenzie
1f990f4030
fFix module formatter parsing bug where literals were being converted to identifiers
2014-12-16 08:06:25 +11:00
Sebastian McKenzie
a03d491ac6
microoptimize module formatters, change method names to a new API, and add support for exporting multiple variable declarators - fixes #299
2014-12-15 22:34:49 +11:00
Sebastian McKenzie
778b4e3a27
remove commonStrict module formatter
2014-12-15 14:16:18 +11:00
Sebastian McKenzie
615425c808
fix linting errors
2014-12-12 12:14:02 +11:00
Sebastian McKenzie
8e96130bc0
rename common to commonStrict and commonInterop to common
2014-12-10 21:08:54 +11:00
Sebastian McKenzie
e97e916b5c
module export variable declaration initializer default - fixes #264
2014-12-09 23:18:54 +11:00
Sebastian McKenzie
e5ce69d6af
clean up register module formatter and rename it to system
2014-11-24 10:19:06 +11:00
Sebastian McKenzie
e3b8fa93e2
export as module.exports if there are no other ExportDeclarations in commonInterop module formatter @guybedford
2014-11-24 10:05:50 +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
fdd1451d53
expose moduleName option - closes #158
2014-11-14 17:19:39 +11:00
Sebastian McKenzie
e4e4ae5b1d
fix up node inheritance
2014-11-09 12:07:46 +11:00
Sebastian McKenzie
d0a33ab933
add inherits option to util.template
2014-11-08 12:00:12 +11:00
Sebastian McKenzie
5c6d57c51b
add transformation and generation folders
2014-11-08 09:17:12 +11:00