Rich-Harris
f0e78f6d1c
prevent conflicts with globals (assumed or otherwise) - fixes #20
10 years ago
Rich-Harris
02afb469ce
ensure correct placement of export default statement
10 years ago
Rich-Harris
ec834d962e
dont sort statements in generate step
10 years ago
Rich-Harris
15d771b45e
minor tidy up and clarification
10 years ago
Rich-Harris
c0a764029f
default exports are not bound. fixes #15
10 years ago
Rich-Harris
f60120bbc6
better (if slightly in need of refactoring) comment handling
10 years ago
Rich-Harris
28883be5a9
avoid path.isAbsolute - not supported on old versions of node
10 years ago
Rich-Harris
733b9b435a
resolve merge conflict
10 years ago
Rich-Harris
d46d67f1c7
method call is assumed to mutate method owner ( #13 )
10 years ago
Rich-Harris
73a07c5c08
allow control over indentation ( closes #5 )
10 years ago
Rich-Harris
aa807c7869
handle named functions as default exports
10 years ago
Rich-Harris
61db1faabc
dont do export rewriting for es6 bundles
10 years ago
Rich-Harris
3c6081c19e
skip specifier exports during rewrite
10 years ago
Rich-Harris
4b26a86d1d
rewrite exported vars, to keep exports live
10 years ago
Rich-Harris
315510f767
use Object.create(null) to avoid conflicts with Object.prototype. fixes #12
10 years ago
Rich-Harris
2993d92776
ensure at least one newline between each statement
10 years ago
Rich-Harris
ffa005eb68
attach iife global export to this, not window
10 years ago
Rich-Harris
28566475a5
check for moduleName option when exporting from UMD bundle
10 years ago
Mike Bostock
acecb7f862
Fix UMD exports.
Use function(exports), not function('exports').
10 years ago
Mike Bostock
f3c8eeee0a
You get a newline!
YOU get a newline!
Everyone gets a newline!
10 years ago
Mike Bostock
d9be5d6286
Fix for malformed output.
Without this change, you can get malformed stuff like this:
var foo = function() {
return "foo";
}var bar = function() {
return "bar";
}
By introducing a newline, a semicolon is implicitly inserted between statements
when necessary:
var foo = function() {
return "foo";
}
var bar = function() {
return "bar";
}
The indentation as a result of this commit is off, but I’m not sure how to fix
it because the build fails for me. (I tested this by editing dist directly.)
10 years ago
Brian Donovan
3f9d5fff7a
Remove unused imports and use one that should be used.
10 years ago
Rich-Harris
f873e70ff5
oh man, never run git reset HEAD while you have unmerged paths. chaos
10 years ago
Brian Donovan
6dfa8f1e3f
Remove unused instance variables.
10 years ago
Rich Harris
583552e9f2
fix CJS export
10 years ago
Rich Harris
23e0f69559
fix finalisers
10 years ago
Boris Letocha
d0e8890738
Fixed endless cycle on Windows
in defaultExternalResolver
10 years ago
Rich Harris
5972bf8346
assignments to properties of bindings is permitted
10 years ago
Rich Harris
836f6b93b3
support for transformers
10 years ago
Rich Harris
8bad2598b7
resolve jsnext:main in node_modules by default, allow resolveExternal to be overridden
10 years ago
Rich Harris
cdeace10ca
BREAKING: API methods take a single argument, and external modules must be declared as such
10 years ago
Rich-Harris
9ff9d7a186
fix sourcemap options
10 years ago
Rich-Harris
04ab791dd6
sourcemaps
10 years ago
Rich-Harris
b9d2f7198a
correct behaviour with export {...} from ...
10 years ago
Rich Harris
6b83a24176
fix tricky edge case with deconflicted default imports
10 years ago
Rich Harris
aaa2234741
more deconflicting
10 years ago
Rich Harris
7c334269ba
preserve original statement order where possible
10 years ago
Rich Harris
da193c40cd
rewrite computed property identifiers
10 years ago
Rich Harris
259e00cf40
external module deshadowing
10 years ago
Rich Harris
f0587c974d
remove a TODO
10 years ago
Rich Harris
055d70af0e
move expand logic into Statement
10 years ago
Rich Harris
0477169c99
move replaceIdentifiers into Statement class
10 years ago
Rich Harris
708272b935
push analyse logic into Statement class
10 years ago
Rich Harris
1b36c09e50
remove _private props from Statement
10 years ago
Rich Harris
e9b69cb21e
remove node properties from statement
10 years ago
Rich Harris
81bd618665
start moving statement logic into dedicated Statement class
10 years ago
Rich Harris
954408e53f
prevent comments inside statement being later appended to it
10 years ago
Rich Harris
39f56ba6d8
linting
10 years ago
Rich Harris
0a021c799b
rename external namespace imports correctly
10 years ago
Rich Harris
4317485330
saner deconflicting
10 years ago