Rich-Harris
0df5d9b177
syncify more code, remove unused promise utils
10 years ago
Rich-Harris
840d1dc21d
handle re-exports in entry module
10 years ago
Rich-Harris
ff27523d44
load all dependencies, regardless of actual usage
10 years ago
Rich-Harris
481d28412c
attach scopes to BlockStatement nodes, not Function nodes. fixes #91
10 years ago
Rich Harris
71d9d4fa0e
only rewrite exported vars as exports.foo if necessary
10 years ago
Rich Harris
f1d35aad7e
use arrays, not objects, to track variable declarations
10 years ago
Rich Harris
975528d034
handle multiple exports of a single binding
10 years ago
Rich-Harris
fc5b89dacd
fix global detection
10 years ago
Rich Harris
419a37f145
fix more tests, messily
10 years ago
Rich Harris
e53bfa6180
fix a few tests
10 years ago
Rich Harris
ae084c0424
first stab at handling reexports separately
10 years ago
Rich-Harris
962431075a
simplify deconflicting logic
10 years ago
Rich-Harris
f14ee72ee1
add statement.toString method for easier debugging
10 years ago
Rich-Harris
0b5dcbced2
make _scope configurable - avoids some test headaches
10 years ago
Rich-Harris
e56d17035d
fix deshadowing false positive
10 years ago
Rich-Harris
405bc00a56
more tidying up
10 years ago
Rich-Harris
7c1d2bb8e6
remove unused code
10 years ago
Rich-Harris
9c22bc12c6
only insert export initialisers if there are any
10 years ago
Rich-Harris
9435773b1c
start moving render logic into modules
10 years ago
Rich-Harris
dbbfc67a0b
expand shorthand properties ( #61 )
10 years ago
Rich-Harris
dcb1147886
exclude unnecessary functions containing assignments/updates to included names ( #37 )
10 years ago
Rich-Harris
a3c383429e
dont rewrite class method keys incorrectly ( #42 )
10 years ago
Rich-Harris
0c86c2275d
fix typo (again...)
10 years ago
Rich Harris
5fad4eba18
check for computed property before abandoning checkForReads ( #47 )
10 years ago
Oskar Segersvärd
49d6b295fa
Forward `strong` parameter from `checkForWrites` to `checkForReads`.
10 years ago
Oskar Segersvärd
af660dd5ef
I think it should be `this.isIncluded`.
10 years ago
Oskar Segersvärd
7c9bba40e6
Added a call to checkForReads in computed member expressions. Tests pass.
10 years ago
Oskar Segersvärd
0e2e705afa
Implemented export * from ...
10 years ago
Rich Harris
e17076250c
mark statements rather than expanding them
10 years ago
Rich Harris
94c3852929
ignore IIFEs for the purposes of determining strong/weak dependencies
10 years ago
Rich-Harris
063fc41832
use module.id instead of module.path
10 years ago
Rich Harris
b7e51064ac
borrow sorting logic from esperanto - fixes #36
10 years ago
Rich Harris
aacbce8759
prevent some unnecessary work
10 years ago
Rich Harris
67d9b5847e
prevent class method definitions erroneously appearing in statement.dependsOn
10 years ago
Rich Harris
b49b35fbb0
mark strong dependencies
10 years ago
Rich Harris
5a548049bf
remove unused check
10 years ago
Rich-Harris
b8894dd901
rename things internally (path -> id, etc) - #30
10 years ago
Rich-Harris
b0eca67402
rename functions with args by the same name ( fixes #32 )
10 years ago
Rich Harris
f2628b5ca0
linting
10 years ago
Rich Harris
69509da0ad
`this` at the top level is undefined ( fixes #28 )
10 years ago
Rich-Harris
01444c971e
passing foo to a function cannot rebind foo
10 years ago
Rich-Harris
402cdc3360
distinguish between binding/property assignments for `export default foo` special case
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
d46d67f1c7
method call is assumed to mutate method owner ( #13 )
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
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
Rich-Harris
f873e70ff5
oh man, never run git reset HEAD while you have unmerged paths. chaos
10 years ago