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
Rich Harris
0a021c799b
rename external namespace imports correctly
10 years ago
Rich-Harris
d5769e79b8
jump through some hoops to keep statements appropriately spaced, and comments attached to their owners
10 years ago
Rich Harris
725be1342a
skip non-bound default export test for now
10 years ago
Rich Harris
6fa907e9d7
more fixes
10 years ago
Rich Harris
c408b7dd0b
modify export statements at generate time
10 years ago
Rich Harris
876f10825d
empty imports are assumed to have side-effects
10 years ago
Rich Harris
778a71165d
ensure entry module exports are defined
10 years ago
Rich Harris
415cb548c2
refactoring
10 years ago
Rich Harris
0f862e6c4d
disallow reassignments and updates of imported bindings/namespaces
10 years ago
Rich Harris
838f0a8812
refactore some stuff
10 years ago
Rich Harris
40bc464e9f
throw error on duplicated import
10 years ago
Rich Harris
2bffd6dbb0
include file info with error object when parse fails
10 years ago
Rich Harris
859d294b71
import defaults from external modules, with an interop layer
10 years ago