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
Minimal reproduction at https://github.com/coreyfarrell/rollup-issue. The import/named plugin is used to verify that import statements request valid exports. Last night rollup@1.2.0 caused the linter for vinyl-rollup to fail as the image/named rule needs to parse the rollup ES module - a process which fails.
I'm unclear if it's allowed to create a new global symbol overwriting a symbol created by import but I'm concerned this might have identified an actual error in rollup.es.js. From rollup.config.js:
constexpectedAcornImport=/import acorn__default, { tokTypes, Parser( as [\w$]+)? } from 'acorn';/;constnewAcornImport="import * as acorn__default from 'acorn';\nimport { tokTypes, Parser } from 'acorn';";
It looks like the original source contains import acorn__default, { tokTypes, Parser as Parser$1 } from 'acorn'; but the replacement drops as Parser$1. Later in rollup.es.js Parser$1 is referenced although it's undefined due to the import alteration.
Expected Behavior
ESLint should be able to parse dist/rollup.es.js, it should not reference undefined variables.
The text was updated successfully, but these errors were encountered:
How Do We Reproduce?
Minimal reproduction at https://github.com/coreyfarrell/rollup-issue. The import/named plugin is used to verify that
import
statements request valid exports. Last nightrollup@1.2.0
caused the linter for vinyl-rollup to fail as theimage/named
rule needs to parse the rollup ES module - a process which fails.I'm unclear if it's allowed to create a new global symbol overwriting a symbol created by
import
but I'm concerned this might have identified an actual error in rollup.es.js. Fromrollup.config.js
:It looks like the original source contains
import acorn__default, { tokTypes, Parser as Parser$1 } from 'acorn';
but the replacement dropsas Parser$1
. Later in rollup.es.jsParser$1
is referenced although it's undefined due to the import alteration.Expected Behavior
ESLint should be able to parse dist/rollup.es.js, it should not reference undefined variables.
The text was updated successfully, but these errors were encountered: