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
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
Luke Page
db4298df4b
Fix directories having '.'
Fixes #133
9 years ago
Rich-Harris
c903bb2e4e
prevent content around synthetic nodes being overwritten twice - fixes #105
9 years ago
Rich-Harris
ac6c2d03db
add bundle.modules - fixes #128
9 years ago
Rich-Harris
7fb0891b08
Revert "guard against undefined `this` in post-processed UMD bundle - fixes #109"
This reverts commit 250678dcf8
.
9 years ago
Rich-Harris
250678dcf8
guard against undefined `this` in post-processed UMD bundle - fixes #109
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
Rich-Harris
965fa5d008
test default exports are re-exported from internal module with export *
9 years ago
Rich-Harris
db27db36e2
add mark method to base Identifier class (makes project buildable)
9 years ago
Rich-Harris
e13a065bb9
handle assignment patterns
9 years ago
Luke Page
30ecd4373a
Fix tests in windows
9 years ago
Raoul v. R
e7b3cddf55
Modified absolutePath RegExp.
Windows didn't like this regular expression. Added normal slashes to the
mixture.
9 years ago
Raoul v. R
989455f7ef
Modified absolutePath RegExp.
Windows didn't like this regular expression. Added normal slashes to the
mixture.
9 years ago
Oskar Segersvärd
98cf636e2e
Implemented `export * from "internal";`
9 years ago
Oskar Segersvärd
e8d299192e
Made the return value of resolver functions optional. Uses a fallback on failure.
9 years ago
Oskar Segersvärd
d9d5cf4ec2
Made the list of predefined globals easily extensible
9 years ago
Oskar Segersvärd
550171a606
Removed FIXME.
9 years ago
Oskar Segersvärd
9706e3786f
Removed JSONModule. Shouldn't be there.
9 years ago
Oskar Segersvärd
da828f31f8
Added missing test for dynamic namespace lookups
9 years ago
Oskar Segersvärd
42723e8a8b
Made sure unused, intermediate namepaces are excluded when bundling. Fixes form/namespace-optimization
9 years ago
Oskar Segersvärd
7627b6c810
Fixed modifier statements. All tests (but sourcemap/names) pass.
9 years ago
Oskar Segersvärd
be15ec33a6
Simplified Statement.mark by moving reexport special case to analyze
9 years ago
Oskar Segersvärd
9cabcc77a5
Defined Id classes, to reduce code duplication
9 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
4182c6d5e4
Throw if attempting to put a namespace's name in update expressions.
10 years ago
Oskar Segersvärd
2aa575d0f5
Throw if attempting to reassign namespace's name.
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
c394a8b9de
Fix CJS finalizer bug, where too many newline was inserted.
10 years ago
Oskar Segersvärd
f084957ab6
Access reexports of externals safely when needed.
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
59fff295e4
Statically resolve internal namespace access
10 years ago
Oskar Segersvärd
5e5bb7b9e0
Updated ES6 finalizer
10 years ago
Oskar Segersvärd
c9aec9eb26
Flag ids that are modules
10 years ago
Oskar Segersvärd
b3c522cc7e
Simpler replacement stack
10 years ago
Oskar Segersvärd
570edfd1ee
Fixed `getExportBlock` for external names.
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