UNPKG

gatsby

Version:
31 lines (30 loc) 694 B
"use strict"; const GatsbyThemeComponentShadowingResolverPlugin = require(`.`); exports.onCreateWebpackConfig = ({ store, stage, getConfig, rules, loaders, actions }, pluginOptions) => { const { flattenedPlugins, program } = store.getState(); actions.setWebpackConfig({ resolve: { plugins: [new GatsbyThemeComponentShadowingResolverPlugin({ extensions: program.extensions, themes: flattenedPlugins.map(plugin => { return { themeDir: plugin.pluginFilepath, themeName: plugin.name }; }), projectRoot: program.directory })] } }); }; //# sourceMappingURL=gatsby-node.js.map