import-js/eslint-plugin-import
在 GitHub 查看import/named and import/namespace errors after upgrading Babel
Open
#1,845 创建于 2020年7月2日
bughelp wanted
仓库指标
- Star
- (4,946 star)
- PR 合并指标
- (平均合并 138天 22小时) (30 天内合并 3 个 PR)
描述
I was on @babel/core 7.8.x and upgraded to 7.10.x and suddenly started seeing errors for import/named and import/namespace.
I have something similar to:
./alpha/abc.js
export const A = 'A'
export const B = 'B'
export const C = 'C'
./alpha/def.js
export const D = 'D'
export const E = 'E'
export const F = 'F'
./alpha/index.js
export * as abc from './abc'
export * as def from './def'
And then in files that need it:
import * as alpha from 'path/to/alpha/index.js'
// do stuff with alpha.abc and alpha.def
I have babel-eslint and @babel/plugin-proposal-export-namespace-from installed. I'm on the latest eslint-plugin-import. Any thoughts?