d no longer tracks the start of the dynamic import statement import('x') but rather the start of the bracket at ('x')
The ss to se range can be reliably used for the whole statement import('x')
The s and e range will either be the inside of the brackets for an unknown expression, or the exact quoted string start and end position after whitespace and comments but including the quotes for a string literal import.
This also includes a bugfix for the asm.js build with multiline dynamic imports.
Since this is a breaking change it will be the 0.10 release.
It also includes some hard-won optimization work bringing the footprints from:
This PR upgrades dynamic import analysis, as described in the readme diff here, and fixes https://github.com/guybedford/es-module-lexer/issues/56, https://github.com/guybedford/es-module-lexer/issues/53 and https://github.com/guybedford/es-module-lexer/issues/98.
To summarize the changes:
d
no longer tracks the start of the dynamic import statementimport('x')
but rather the start of the bracket at('x')
ss
tose
range can be reliably used for the whole statementimport('x')
s
ande
range will either be the inside of the brackets for an unknown expression, or the exact quoted string start and end position after whitespace and comments but including the quotes for a string literal import.This also includes a bugfix for the asm.js build with multiline dynamic imports.
Since this is a breaking change it will be the 0.10 release.
It also includes some hard-won optimization work bringing the footprints from:
to: