mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			740 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			740 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| const findRoot = require('find-root');
 | |
| 
 | |
| const aliasExactMatch = [
 | |
|   '@strapi/design-system',
 | |
|   '@strapi/helper-plugin',
 | |
|   '@strapi/icons',
 | |
|   'date-fns',
 | |
|   'formik',
 | |
|   'history',
 | |
|   'immer',
 | |
|   'qs',
 | |
|   'lodash',
 | |
|   'react',
 | |
|   'react-dnd',
 | |
|   'react-dnd-html5-backend',
 | |
|   'react-dom',
 | |
|   'react-error-boundary',
 | |
|   'react-helmet',
 | |
|   'react-is',
 | |
|   'react-intl',
 | |
|   'react-query',
 | |
|   'react-redux',
 | |
|   'react-router-dom',
 | |
|   'react-window',
 | |
|   'react-select',
 | |
|   'redux',
 | |
|   'reselect',
 | |
|   'styled-components',
 | |
|   'yup',
 | |
| ];
 | |
| 
 | |
| // See https://webpack.js.org/configuration/resolve/
 | |
| module.exports = {
 | |
|   ...aliasExactMatch.reduce((acc, moduleName) => {
 | |
|     acc[`${moduleName}$`] = findRoot(require.resolve(moduleName));
 | |
|     return acc;
 | |
|   }, {}),
 | |
| };
 | 
