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
Rich-Harris
9f2a92d900
exclude plugin helpers from sourcemaps
9 years ago
Bogdan Chadkin
8798331389
Warn on namespace conflicts
9 years ago
Rich Harris
2a8bc9569e
ass async onwrite hook
9 years ago
Rich Harris
b28a019014
synchronous ongenerate hook ( #353 )
9 years ago
Rich Harris
e628775a42
track side-effects to default exports - fixes #733 , sort of
9 years ago
Bogdan Chadkin
6917687996
Fail on export all dup optionally
9 years ago
Bogdan Chadkin
705b1e97a5
Revert assign mod
9 years ago
Bogdan Chadkin
d5c232d6cc
Fail on duplicating in export * from
9 years ago
Rich-Harris
b1e6823f08
es6 -> es
9 years ago
Brian Donovan
c9d422d52d
Allow `sourceMapFile` as an option.
Fixes #717 .
9 years ago
Permutator
7535c518ff
Fixed loading of source content from loader-provided sourcemaps
9 years ago
Permutator
4ebaeecb15
Reduce blobbiness of collapseSourcemaps
9 years ago
Permutator
22f57c4571
Made it possible for plugin loaders to provide sourcemaps
9 years ago
Permutator
c6e360d224
const map = map? I think not.
9 years ago
Rich Harris
1d11282d6e
allow user-specified acorn options ( #564 )
9 years ago
Rich Harris
51c3da9a6f
rewrite top-level this as undefined
9 years ago
Bogdan Chadkin
ccbc11cce1
Normalize absolute paths in default resolver
9 years ago
Rich Harris
e11b1f2d68
preserve sourcemap chain
9 years ago