Ensure that the internal plugin load does not read the user's config. (#7783)

This commit is contained in:
Logan Smyth
2018-04-22 20:32:52 -07:00
committed by GitHub
parent b414387bb1
commit c8b57f777a

View File

@@ -13,6 +13,7 @@ export default function loadBlockHoistPlugin(): Plugin {
// which loads this file, and this 'loadConfig' loading plugins.
const config = loadConfig({
babelrc: false,
configFile: false,
plugins: [blockHoistPlugin],
});
LOADED_PLUGIN = config ? config.passes[0][0] : undefined;