Brian Donovan
95106fa770
Remove unused imports to fix linting.
8 years ago
Rich-Harris
ef676b4081
disregard effects in dead branches
8 years ago
Rich-Harris
2e32f23777
fix double var declaration bug ( #716 )
8 years ago
Rich-Harris
5e1e5f99c5
dont assume recursive function calls have side-effects
8 years ago
Rich Harris
34a13a74d0
use a set to track which functions are being called
8 years ago
Rich Harris
beac2e6eb1
fix regex
8 years ago
Rich-Harris
fe36478151
do less work at end
8 years ago
Rich-Harris
cf1ac32a53
dont separate vars in for loop head
8 years ago
Rich-Harris
2295153964
handle updates of parameters
8 years ago
Rich Harris
83ccb97253
clone ASTs, for fast incremental rebuilds
8 years ago
Rich Harris
db0dc75f03
parse as ES7
8 years ago
Rich Harris
ad4ca750a5
linting
8 years ago
Rich-Harris
173cfc0df7
rewrite
8 years ago
Pat Cavit
a27ba30aa6
Add options as second arg to .transformBundle
Currently only piping through `format`, could certainly pass others if
necessary. Maybe all should be brought through?
8 years ago
Rich-Harris
dab40ce0b9
handle non-existent dir of import
8 years ago
Rich Harris
1d7c853ce6
prevent leaky state, always clone magic-string
8 years ago
Rich Harris
53b21d1629
ensure intro appears before interop block ( #880 )
8 years ago
Rich Harris
98b4da0f35
allow custom bundle context ( #851 )
9 years ago
Rich Harris
ebbb5bec62
put outro after export block, not before ( #852 )
9 years ago
Permutator
b7f73d6d70
Leave it up to resolveId to normalize the entry path
9 years ago
Bogdan Chadkin
d8addbb82e
Cache decoded mappings
9 years ago
Bogdan Chadkin
d39105d688
Improve linting
9 years ago
Philipp Weinfurter
c64da6ebcf
Initialize member in constructor, fixes #813
9 years ago
Bogdan Chadkin
ebd5ead5e6
Module render performance tweak
Ref https://github.com/rollup/rollup/issues/723
9 years ago
ph.ter
088d12bf9f
Avoid infinite recursion in Bundle.sort()
9 years ago
Ronald Berner
7b7709eb38
If removing import statements, start at the beginning of the actualy import keyword, instead of the beginning of the file (statement.start vs statement.node.start)
9 years ago
Bogdan Chadkin
b215060634
Wrap source id with quotes in unresolved error
9 years ago
Bogdan Chadkin
bd1c379a17
Reduce transformers error message chain
9 years ago
Bogdan Chadkin
1a2d3dce26
Changde indent default to false
9 years ago
Bogdan Chadkin
684dde0a30
Cache resolvedIds in modules to improve incremental build
9 years ago
Eli Skeggs
60a4e406b6
Add explicit entry resolve error message
Fixes #802
9 years ago
Rich-Harris
93ec667228
more aggressive linting
9 years ago
Rich-Harris
1e98a69e2e
fix export * from external bug
9 years ago
Kurt Blackwell
c5fa9b2a42
Introduce eslint to tests. Complaints are fixed, but none of them major.
9 years ago
Rich-Harris
328d145221
support paths config ( #754 )
9 years ago
Rich-Harris
b699a46978
lint
9 years ago
Rich-Harris
dbfa280fcd
ensure reassigned exports are declared in an ES bundle ( #755 )
9 years ago
Rich-Harris
392a338c64
add newline after sourcemap comment. fixes #756
9 years ago
Rich-Harris
98e60efa30
remove superfluous helper
9 years ago
Rich-Harris
8dfbfa3ea5
add back removed path methods for browser
9 years ago
Rich-Harris
9b165aba78
normalize external relative paths
9 years ago
Rich-Harris
cf4d914c11
gah windows
9 years ago
Rich-Harris
5b4f70725d
experimenting with using native path methods to try and fix windows bugs
9 years ago
Rich-Harris
6a03009faa
dont normalize ID before checking if its external
9 years ago
Rich-Harris
31f55a4755
use resolved IDs for external modules to allow options.globals to work with relative imports ( #763 )
9 years ago
Pat Cavit
9acb92dcd0
Try making ongenerate/onwrite more useful
9 years ago
Rich-Harris
4a8ce666ab
warn on top-level `this` – fixes #770
9 years ago
bmaurer
a9c5850c85
Avoid lazy parsing by adding parens around factory
Most javascript engines do a lazy parsing optimization. For example if they see:
function X() {...}
They won't parse the contents of X until it is executed. However they often have to read the contents of X so that they can see if X uses any variables from the outer scope. Thus X ends up getting parsed twice.
Realizing that often one immediately executes a function, browser have optimized statements of the form:
(function X() {...})()
So that X is not parsed lazily. Traditionally this optimization looks for an open paren before the function. For example, here's the optimization in v8:
203391bcc0/src/parsing/parser.cc (L4256)
Since the factory is immediately executed (at least in the commonJS and global export case), this change avoids the double parsing that comes with parsing the function lazily.
9 years ago
Rich Harris
78db6134af
indicate source of transform error where possible, and downgrade non-sourcemap-generating transforms to a warning ( #746 )
9 years ago
Rich Harris
84cccae433
change language to reflect the fact that conflicting namespaces are permitted, if discouraged
9 years ago