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 |
Oskar Segersvärd
|
17df91a529
|
Prevent namespace abuse by freezing them
Fixes #202
|
9 years ago |
Rich-Harris
|
35cabd7621
|
fix super-niche resolution bug affecting online demo
|
9 years ago |
Rich-Harris
|
61dcc1bf7c
|
populate map.sourcesContent with original code
|
9 years ago |
Rich-Harris
|
e96cca5971
|
sourcemap aware transforms
|
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
|
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
|
c46afb57c1
|
roll up acorn
|
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
|
940daa4f5b
|
handle parenthesised default exports (#136)
|
9 years ago |
Rich Harris
|
7397b37a6d
|
include module ID in error message (#143)
|
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
|
18ba8f09ac
|
Don't include 'default' export from 'export * from ...'
|
9 years ago |
Rich Harris
|
313b108f41
|
remove some unused code, add some additional tests
|
9 years ago |
Rich Harris
|
b24c0e2738
|
oops linux is case sensitive
|
9 years ago |
Rich Harris
|
74b362baa3
|
prevent confusion with sourceMappingURL
|
9 years ago |
Rich-Harris
|
c903bb2e4e
|
prevent content around synthetic nodes being overwritten twice - fixes #105
|
9 years ago |
Rich-Harris
|
8cec1efb93
|
mark side-effects later, to avoid late declarations breaking stuff
|
9 years ago |
Rich-Harris
|
25ca424c2a
|
mark side-effecty statements (call expressions and assignments to globals) - fixes #112
|
9 years ago |
Oskar Segersvärd
|
98cf636e2e
|
Implemented `export * from "internal";`
|
10 years ago |
Oskar Segersvärd
|
9cabcc77a5
|
Defined Id classes, to reduce code duplication
|
10 years ago |
Oskar Segersvärd
|
9051520dee
|
Don't use `for-of`
|
10 years ago |
Oskar Segersvärd
|
21c23e1762
|
Fixed rebase mistakes
|
10 years ago |
Oskar Segersvärd
|
8b32e24644
|
Fix Module.name if id isn't a path
|
10 years ago |
Oskar Segersvärd
|
8d4b11fb47
|
Fixed a ReferenceError in isEmptyExportedVarDeclaration
|
10 years ago |
Oskar Segersvärd
|
616a5ce306
|
Added `mark()` method to identifiers.
* Removed Module's `mark( name )` and `markExport( name, module )`
* Added `mark()` to Modules
|
10 years ago |
Oskar Segersvärd
|
c9aec9eb26
|
Flag ids that are modules
|
10 years ago |
Oskar Segersvärd
|
7457ab75f4
|
Removed suggestedName argument from markExport
|
10 years ago |
Oskar Segersvärd
|
cc9d5b7ecc
|
Started working on namespaces.
|
10 years ago |
Oskar Segersvärd
|
89acace26a
|
Add var declaration kind.
|
10 years ago |
Oskar Segersvärd
|
70c344c448
|
Fixed external-imports. Made cjs use getInteropBlock.
|
10 years ago |
Oskar Segersvärd
|
a29f03559d
|
Removed `defaultIdentifier` property from Module.
* Just use the `identifier` property of the default `Identifier`.
* Mark external modules imported as namespace with needsAll.
|
10 years ago |
Oskar Segersvärd
|
02720bfc06
|
Fixed default names.
|
10 years ago |
Oskar Segersvärd
|
a05997b9c5
|
virtual scopes optionally inherit the parent scope
* locals should inherit references to global variables
* exports on the other hand should not
|
10 years ago |
Oskar Segersvärd
|
e5801ae400
|
Implemented 'export *' for internal modules
* exporting * from external modules isn't supported yet, and raises a warning.
|
10 years ago |
Oskar Segersvärd
|
510a75ae69
|
Started on default exports.
|
10 years ago |
Oskar Segersvärd
|
be12487631
|
Pass iife-strong-dependencies
|
10 years ago |
Oskar Segersvärd
|
3b6977f590
|
More tests pass
* Move `name` definition closer to usage.
* Fixed mistake where `locals` should have been `exports`
|
10 years ago |
Oskar Segersvärd
|
c222063edd
|
Predefine the 'exports' global, and bind locals to found globals.
|
10 years ago |
Oskar Segersvärd
|
d8339d5697
|
Removed unused `findDefiningStatement`.
|
10 years ago |
Oskar Segersvärd
|
ac2597859a
|
Removed `console.log`s
|
10 years ago |
Oskar Segersvärd
|
8945c3dd21
|
Simplified `Scope.define`'s implementation by taking two arguments.
|
10 years ago |