Sebastian McKenzie
00b22b1231
don't ignore dynamic import specifiers - fixes #633
2015-01-30 00:13:37 +11:00
Stefan Penner
9ddf411f2c
cleanup: require explicit lodash modules needed
2015-01-28 23:52:17 -05:00
Sebastian McKenzie
c7c99efa8e
add back strict module formatters
2015-01-26 10:57:06 +11:00
Sebastian McKenzie
75460b91d8
clean up module formatters and fix interopRequireWildcard helper
2015-01-26 00:14:04 +11:00
Sebastian McKenzie
3d355566dc
avoid duplicate requires when importing modules
2015-01-25 20:39:41 +11:00
Sebastian McKenzie
3fdf492dcf
safer common interop - closes #493
2015-01-25 14:03:25 +11:00
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
Aluísio Augusto Silva Gonçalves
02019d4d8f
Drop unnecessary dynamic import redeclaration in AMD
...
Instead of assigning the import a name and them declaring a new
variabled referencing that name, output the import already with
the destination name, since we know there must be no collisions
because these IDs are also generated.
2015-01-18 21:18:25 -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
611137c7d7
add umd strict and amd strict module formatter, also fix bug with wrong amd module constructor - fixes #415
2015-01-08 22:44:51 +11:00
Lars Kappert
a4c8895dc3
Conditionally pass "module" arg to AMD/UMD factory
2015-01-04 12:58:52 +01:00
Lars Kappert
af4009694a
Simplify AMD export declaration fn to re-use CommonJS one
2015-01-04 12:53:17 +01:00
Lars Kappert
7ac98c1532
Add custom export declaration fn for AMD modules
2015-01-04 11:46:28 +01:00
Sebastian McKenzie
931a80f5b3
rename "declarations" to the more sane "helpers"
2015-01-04 13:34:56 +11:00
Sebastian McKenzie
52ffc65a06
make system module formatter modules anonymous by default - fixes #347
2014-12-29 01:55:30 +11:00
Sebastian McKenzie
b63bd8cba0
remove interopRequire from system module formatter
2014-12-28 01:14:08 +11:00
Sebastian McKenzie
84c2766756
remove unused variable
2014-12-28 01:01:52 +11:00
Sebastian McKenzie
601bbb86cd
remap UpdateExpression in module exports - closes #334
2014-12-28 01:00:53 +11:00
Sebastian McKenzie
df66fa0a7f
heavily simplify system module formatter and share common code between them all
2014-12-27 21:23:53 +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
e31e68cae3
use types.isSpecifierDefault in amd modules formatter
2014-12-15 14:16:34 +11:00
Sebastian McKenzie
6011db7ae1
Merge branch 'master' into 2.0.0
2014-12-15 14:02:04 +11:00
Casey Foster
f4fdc3adc6
Fix incorrect object reference in #295
2014-12-14 20:57:32 -06:00
Casey Foster
5da4397392
Add interop require support for AMD and UMD
2014-12-14 20:44:38 -06: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
e5ce69d6af
clean up register module formatter and rename it to system
2014-11-24 10:19:06 +11:00
Sebastian McKenzie
6b1d9b49b7
use generateUidIdentifier over the long form
2014-11-21 17:09:15 +11:00
Sebastian McKenzie
638143700b
add whitespace around defineArgs
2014-11-20 00:49:12 +11:00
Lars Kappert
b924e3deb5
Rename to "--amd-module-ids"
2014-11-19 08:55:16 +01:00
Lars Kappert
df0e4f6431
Reuse Formatter::getModuleName(), fix opts
2014-11-19 08:43:28 +01:00
Lars Kappert
9895711bf4
Improve performance
2014-11-18 22:15:02 +01:00
Lars Kappert
8db466c698
Make AMD module id's optional
2014-11-18 22:04:41 +01: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
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
5c6d57c51b
add transformation and generation folders
2014-11-08 09:17:12 +11:00