You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Import type is provided by `t` value// (1 for static, 2, for dynamic)// Returns trueimports[2].t==2;
This is also stated in lexer.d.ts:
exportdeclareenumImportType{/** * A normal static using any syntax variations * import .. from 'module' */Static=1,/** * A dynamic import expression `import(specifier)` * or `import(specifier, opts)` */Dynamic=2,/** * An import.meta expression */ImportMeta=3,/** * A source phase import * import source x from 'module' */StaticSourcePhase=4,/** * A dynamic source phase import * import.source('module') */DynamicSourcePhase=5}
However, at runtime, I observe that Static and Dynamic are in fact reversed:
In the README it says the following:
This is also stated in
lexer.d.ts
:However, at runtime, I observe that
Static
andDynamic
are in fact reversed:The text was updated successfully, but these errors were encountered: