Rich Harris
e111c5d8dc
add js extensions
9 years ago
Brian Donovan
14af551bfc
Remove unneeded `.js` extensions in import.
9 years ago
Rich Harris
170f1672b4
more robust deconflicting (sorry, no test yet)
9 years ago
Oskar Segersvärd
64479df905
Inverse condition. Re-run the tests after restructuring code.
9 years ago
Oskar Segersvärd
502b5cf940
Disallow 'default' as an identifier name
9 years ago
Rich-Harris
a474426d09
throw if deprecated options are passed
9 years ago
Rich-Harris
814003cee2
include importing module in error message when load fails
9 years ago
Rich-Harris
1ef3060e3a
keep non .js extensions, e.g. .json
9 years ago
Rich Harris
223cddc55e
default to options.external = []
9 years ago
Rich Harris
72836cbfe0
bring back options.external but warn if missing rather than error
9 years ago
Rich Harris
157a665e92
consolidate default load and resolveId, remove external resolver
9 years ago
Rich Harris
5b711ec005
support more plugin stuff, remove support for transform, resolveId, load, external, resolveExternal
9 years ago
Rich-Harris
c924d5433c
support plugins that return transform and intro functions
9 years ago
Oskar Segersvärd
24b64ca4e1
Use declarations, regardless of whether they have statements or not
Fixes #204
9 years ago
Oskar Segersvärd
17df91a529
Prevent namespace abuse by freezing them
Fixes #202
9 years ago
Rich-Harris
725eb859c8
more informative error message if missing intermediate sourcemaps
9 years ago
Rich-Harris
f3ae229d46
merge
9 years ago
Oskar Segersvärd
89114a97ee
Added missing import
Fixes #189
9 years ago
Rich-Harris
35cabd7621
fix super-niche resolution bug affecting online demo
9 years ago
Rich-Harris
41aac14d07
use rollup-babel for bundling self (is quicker!) and include banner/version in dist files
9 years ago
Rich-Harris
61dcc1bf7c
populate map.sourcesContent with original code
9 years ago
Rich-Harris
ccf2cd073c
handle missing line in sourcemap
9 years ago
Rich-Harris
7590f6c10b
add intro/outro option (TODO document)
9 years ago
Rich-Harris
53aa476baa
allow transformers to return nothing (i.e. skip)
9 years ago
Rich-Harris
e96cca5971
sourcemap aware transforms
9 years ago
Rich-Harris
9f2d1b8ada
use resolvers/loaders in order, dont catch errors
9 years ago
Rich-Harris
2d54c12e9c
split up export var a, b, c - fixes #171
9 years ago
Oskar Segersvärd
4e692342fa
Fix foolish mistakes
9 years ago
Oskar Segersvärd
41bfd877f3
Informative error message when namespace property doesn't exist
TypeError: Cannot read property 'addReference' of undefined
->
Export 'foo' is not defined by '<module name>'
9 years ago
Rich-Harris
06b4107440
allow namespace to be assigned to a variable. fixes #168
9 years ago
Rich Harris
fd3ae38c18
make external modules configurable
9 years ago
Rich Harris
f925103863
only exclude strings with newlines, and crop out enclosing quotes - fixes #166
9 years ago
Rich Harris
9a8f331a8b
include members of namespaces that are exported as defaults
9 years ago
Rich Harris
dded04d414
prevent superfluous semi-colons causing whitespace to collapse after functions declarations
9 years ago
Rich Harris
e8fe0d1080
make intermediate dirs in writeFile helper
9 years ago
Rich Harris
7a1eeabc2c
fix travis error, hopefully
9 years ago
Rich Harris
c46afb57c1
roll up acorn
9 years ago
Rich Harris
dfa6492bf8
remove sander dependency
9 years ago
Rich Harris
567bd38ace
prevent deshadowing logic causing double rewrites
9 years ago
Rich Harris
4fcbba63e0
prevent multiline strings being indented ( #164 )
9 years ago
Rich-Harris
3e6fe19a39
brute force merge rewrite -> rewrite-master
9 years ago
Rich Harris
0b628da2d9
allow imports from hidden directories
9 years ago
Rich Harris
940daa4f5b
handle parenthesised default exports ( #136 )
9 years ago
Rich Harris
a1f528d385
handle scoped packages
9 years ago
Rich Harris
7397b37a6d
include module ID in error message ( #143 )
9 years ago
Oskar Segersvärd
6e839f2d38
Extract namespace lookup optimisation into separate pass
9 years ago
Rich-Harris
769cf5834d
linting
9 years ago
Oskar Segersvärd
365f45c7f3
Made Scope.reference stricter. Helps to catch undefined/missing exports.
9 years ago
Oskar Segersvärd
0c83250fae
Polish optimization of namespace lookups
* Explain better how optimization of namespace lookups are done in comments.
* Consider `hasReplacements` to be true if there exists any namespace replacements.
* Improve error messages slightly
9 years ago
Oskar Segersvärd
b325f33a02
Changed the default deconfliction function to behave more like Babel. Should be much faster for many identical identifiers.
9 years ago