Rich-Harris
9164f80487
remove pre-existing sourcemap comments
10 years ago
Rich-Harris
405bc00a56
more tidying up
10 years ago
Rich-Harris
7c1d2bb8e6
remove unused code
10 years ago
Rich-Harris
24d061450a
fix variable splitting
10 years ago
Rich-Harris
cbae9fc8de
remove more unused code
10 years ago
Rich-Harris
8f3f437e1c
reattach comments, handle var splitting better
10 years ago
Rich-Harris
6d2e108c01
reimplement multiple var splitting
10 years ago
Rich-Harris
9435773b1c
start moving render logic into modules
10 years ago
Rich-Harris
069f83bec8
make getCanonicalName es6-aware
10 years ago
Oskar Segersvärd
9a1ae23919
Named and * imports must be treated separately.
10 years ago
Arpad Borsos
759d3938b9
allow importing external modules for side effects, fixes #55
10 years ago
Rich-Harris
f1545cbf03
mark export declarations as used, to preserve side-effects ( #43 )
10 years ago
Oskar Segersvärd
0e2e705afa
Implemented export * from ...
10 years ago
Rich Harris
412544268c
include side-effects ( #40 )
10 years ago
Rich Harris
e17076250c
mark statements rather than expanding them
10 years ago
Rich Harris
eadbfcbdcd
refactoring
10 years ago
Rich Harris
33effb4b3b
order methods alphabetically. easier to find what youre looking for
10 years ago
Rich-Harris
a7aed4b2b8
WIP conversion to browser-friendly bundle
10 years ago
Rich Harris
f1d43ce34c
better sorting (sort at module level)
10 years ago
Rich-Harris
b8894dd901
rename things internally (path -> id, etc) - #30
10 years ago
Rich-Harris
5be634f20e
ensure unused default exports have legal name ( fixes #33 )
10 years ago
Rich Harris
dc6940de2e
apply resolvePath hook to entry module ( #30 )
10 years ago
Rich-Harris
f031ccc53a
deconflict auto-generated default export names, convert expressions to declarations. fixes #29
10 years ago
Rich Harris
f2628b5ca0
linting
10 years ago
Rich Harris
207cb9dfba
break apart top-level var declarations with multiple declarators - fixes #26
10 years ago
Rich-Harris
0406e7f578
insert export default statement after previous, rather than before next
10 years ago
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
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
aa807c7869
handle named functions as default exports
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
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
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
7c334269ba
preserve original statement order where possible
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
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
39f56ba6d8
linting
10 years ago