Skip to content

Commit

Permalink
fix(core): allow plugin resolution to follow normal algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Oct 22, 2019
1 parent 8c8abb3 commit 3f6b83b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/lib/plugin_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ const plugin_manager = function() {
foundPlugins.forEach(plugin => {
logger.info(`Found plugin: ${plugin}`);
logger.info(`Attempting to load and initialize plugin.`);
const pluginModule = loadPlugin(
path.join(process.cwd(), 'node_modules', plugin)
);
const pluginModule = loadPlugin(path.join(plugin));
pluginModule(patternlab);
});
}
Expand Down

0 comments on commit 3f6b83b

Please sign in to comment.