import-js/eslint-plugin-import

import/named: wildcard export not working?

Open

#920 ouverte le 23 août 2017

Voir sur GitHub
 (9 commentaires) (28 réactions) (0 assignés)JavaScript (1 540 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (4 946 stars)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

Description

Simplified version: a.js:

    export const a = 5

b.js:

    export * from './a'

c.js:

    import {a} from './b' 

c.js errors with import/named: export a not found in b.js

however, when I try this simplified version, there is no error for c but it also doesn't error if I import x which definitely doesn't exist. So not sure what is going on…

Guide contributeur