Rich-Harris
502e58d0b0
omit globals for empty imports ( #1217 )
8 years ago
Rich-Harris
1032e75d46
add file property to sourcemaps with plugins
8 years ago
Rich Harris
e7fa75cfe4
handle export default{}
8 years ago
Rich-Harris
dd9a93f094
more error stuff
8 years ago
Rich-Harris
dc53d05614
use error helpers in more places
8 years ago
Rich-Harris
4a2e791ab0
lint
8 years ago
Rich-Harris
2368ae242e
use error helpers consistently, update tests
8 years ago
Rich-Harris
be0f82c623
add module.error helper for consistently reporting errors ( #545 )
8 years ago
Rich-Harris
595fa5878d
prevent mutation of cached ASTs ( #1153 )
8 years ago
Rich-Harris
d1d667f9a8
ignore var inits in dead branches - fixes #1198
8 years ago
Rich-Harris
708fb9821b
warn on missing format ( fixes #1197 )
8 years ago
Rich-Harris
f695e628d6
richer warnings in CLI
8 years ago
Rich-Harris
8813641170
include location info in stringified warnings
8 years ago
Rich-Harris
ab14557a25
lint
8 years ago
Rich-Harris
4dba546885
use bundle.warn and module.warn throughout codebase
8 years ago
Rich-Harris
5360abdb31
implement bundle.warn and module.warn, to replace direct calls to bundle.onwarn ( #1194 )
8 years ago
Rich-Harris
c36f965e7d
warn about using node built-ins in browser bundle ( #1051 )
8 years ago
Rich-Harris
47d3daf9a5
statically analyse LogicalExpression nodes ( #1061 )
8 years ago
Rich-Harris
b1a9abc261
use path.relative inside relativeId, to try and fix tests on windows
8 years ago
Rich-Harris
028e425b91
more informative warning for implicit external dependencies
8 years ago
Rich-Harris
aefbed648c
warn if exporting an IIFE that looks like a function declaration, and wrap in parens if necessary ( #1011 )
8 years ago
Rich-Harris
0d3ab7bb25
use Set rather than Map for deshadowing
8 years ago
Rich-Harris
d249c7eb34
preserve var declarations in dead branches
8 years ago
Rich-Harris
2eebe3dcc9
deconflict function expression IDs ( #1176 )
8 years ago
kzc
2744947b03
drop unused function and class declarations within functions ( #1108 , #1178 )
8 years ago
Rich-Harris
b624d674a9
remove, and warn about, unused imports from external modules ( #595 )
8 years ago
Rich-Harris
58f9f26bb2
support async functions ( #492 )
8 years ago
Rich-Harris
5f8205e8be
warn on empty bundle ( #444 ), and remove some tests that are no longer testing anything
8 years ago
Rich-Harris
a502f30365
add back @btd fix for #1104
8 years ago
Rich-Harris
553abd9873
bind function expression ids to the child scope ( #1083 )
8 years ago
Rich-Harris
1c354babeb
deshadow destructured parameters with assignments ( #1078 )
8 years ago
Rich-Harris
e05bf77efc
fix behaviour of export { foo as default } ( #1078 )
8 years ago
Rich-Harris
1ca90bd374
prevent false positives for sourcemapping url comments with newlines ( #988 )
8 years ago
Rich-Harris
119734af79
include blocks containing activated var declarations ( fixes #1113 )
8 years ago
Pauan
0afa3ed2e8
Removes `new Foo(...)` when Foo is a pure function
8 years ago
Rich-Harris
ccc7ad7352
only remove valid sourcemapping URL comments ( fixes #1132 )
8 years ago
Rich-Harris
4a577a3c44
lint
8 years ago
Rich-Harris
70261d03fa
linting
8 years ago
Rich-Harris
38750c41ec
support plugin outros
8 years ago
Daniel Tschinder
583b13d757
Improves tree-shaking by only considering program-level
assignments as a Bundle's dependent expressions.
8 years ago
Chris Thielen
b1e4384865
Update comments describing property string generation
8 years ago
kzc
2521f2e6e3
be more leniant in processing ExportDefaultDeclaration ( #1146 )
8 years ago
Chris Thielen
f43fd99554
Access global.* using array notation
This allows arbitrary `moduleName` (including names with dashes like `ui-router` or scoped npm packages like `@angular/core`) to be added to the global object.
Closes #582
Closes #584
8 years ago
Rich Harris
2d32cddabf
implement gatherPossibleValues on ExternalDeclaration - fixes #957
8 years ago
Rich Harris
a4927986bd
deduplicate
8 years ago
Rich Harris
81bf060969
quote reserved properties in legacy mode
8 years ago
Rich Harris
209fe7c694
apply https://github.com/rollup/rollup/pull/1062#issuecomment-255536598
8 years ago
kzc
ac04b83362
fix paren issues with tree shaking ( #1101 #1128 )
8 years ago
Oskar Segersvärd
ab3b38f15a
Bundle execution is only dependent on program level call expressions
8 years ago
zackschuster
da4fb22e7a
destructure options in Scope constructor
i couldn't think of a reason you'd opt out of destructuring here; apologies if i'm mistaken somehow
8 years ago