We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eeea24 commit 6f39c09Copy full SHA for 6f39c09
src/utils.ts
@@ -261,7 +261,7 @@ export function getSpecifierOffset(
261
) {
262
const { specifiers } = n;
263
const ast = specifiers[index];
264
- let end = ast.span.end;
+ let { end } = getRealSpan({ start: 0, end: ast.span.end }, offset);
265
const span = getRealSpan({ start: ast.span.start, end: n.span.end }, offset);
266
if (index + 1 === specifiers.length) {
267
const commaIdx = script.slice(span.start, span.end).indexOf(",");
0 commit comments