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
Rich Harris
0a7a391c04
preserve ast to avoid re-parsing
9 years ago
Rich Harris
84d408f9ad
make tests more robust (fs was getting out of sync)
9 years ago
Rich Harris
fc7e0f1ce2
change option from bundle to cache
9 years ago
Rich Harris
528b692a38
ensure name suggestions are legal identifiers
9 years ago
Rich-Harris
001901a695
undo non-string ID change ( #692 )
9 years ago
Rich-Harris
200eb13259
update to latest magic-string
9 years ago
Rich-Harris
fc648ea46c
remove es6-promise. closes #689
9 years ago
Rich-Harris
169ae35413
allow resolved module IDs to be non-strings
9 years ago
Brian Donovan
a3f2d17596
Allow specifying multiple output targets.
Closes #655 .
9 years ago
Rich-Harris
f0072851a5
remove commented out code
9 years ago
Rich-Harris
558b4cf355
distinguish between default and namespace imports from external module ( #637 )
9 years ago
Rich-Harris
b059d075d5
add __esModule to AMD, move to top of CJS, consistent style
9 years ago
Rich-Harris
e85626ea02
options.preferConst to use const instead of var when creating statements ( #653 )
9 years ago
Rich-Harris
c96888e2f4
deconflict ES bundle imports – fixes #659
9 years ago
Rich-Harris
a50d71a63e
preserve debugger statements. closes #664
9 years ago
Rich-Harris
40217fd2e1
allow options.external to be a function. closes #522
9 years ago
Rich-Harris
3705b37923
warn about eval security vulnerability
9 years ago
Rich-Harris
e45547b58b
prevent duplicate exports from single module ( #679 )
9 years ago
Mickael Jeanroy
e5437ed2f5
ensure that external alias are not treated as relative path
9 years ago
Bogdan Chadkin
157b7c151f
Invalidate module when file content is changed
9 years ago
Bogdan Chadkin
ad44c4ba5b
Add incremental support build by passing previous bundle
9 years ago
Cameron Martin
a660b896dc
Made __esModule a non-enumerable property of exports.
This is the same as how babel does it. See https://goo.gl/KTGKyH .
9 years ago
Cameron Martin
d8844e7078
Added the __esModule export, with value true, when the format is cjs or umd, and the exports option is named.
9 years ago
Rich Harris
82112f7528
ensure reference is only marked as reassignment if it is the subject of the reassignment – fixes #648
9 years ago
Oskar Segersvärd
cf5dee06d5
Update collapseSourcemaps to use class syntax post-620
9 years ago
Oskar Segersvärd
fbb0b3935b
Fix failing test
9 years ago