Skip to content

Commit

Permalink
chore(config): alias to import from plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
germanferrero committed Oct 14, 2021
1 parent f33e77a commit 5c70a0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
moduleNameMapper: {
...preactPreset.moduleNameMapper,
'^components/(.*)$': '<rootDir>/src/components/$1',
'^utils/(.*)$': '<rootDir>/src/utils/$1'
'^utils/(.*)$': '<rootDir>/src/utils/$1',
'^plugins/(.*)$': '<rootDir>/plugins/$1'
}
};
1 change: 1 addition & 0 deletions preact.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ export default function (config, env, helpers) {
// Add common imports aliases
config.resolve.alias.components = path.resolve(__dirname, 'src/components');
config.resolve.alias.utils = path.resolve(__dirname, 'src/utils');
config.resolve.alias.plugins = path.resolve(__dirname, 'plugins');
}

0 comments on commit 5c70a0a

Please sign in to comment.