Last active
August 20, 2018 11:42
-
-
Save vincentdchan/e3b8f3a860a28e42d11e0f69ecb72b0d to your computer and use it in GitHub Desktop.
re-export from another module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// common.js | |
export * from './some' // export some | |
export function thing() {} | |
// index.js | |
import { some, thing } from './common.js' | |
/** | |
the hook would send [ 'some', 'thing' ] to my plugin for common.js, | |
my plugin only analyazes 'thing' from 'common.js', | |
so now it will skip 'thing' for 'common.js' because my plugin cannot find it. (It throw an error before, not it will skip) | |
If webpack sends 'some' to some.js, there will be nothing wrong. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment