Apply aliasing in resolving module
This commit is contained in:
		
							parent
							
								
									3eef84583d
								
							
						
					
					
						commit
						1dc433b292
					
				
					 3 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								index.js
									
										
									
									
									
								
							|  | @ -1 +1,2 @@ | ||||||
|  | require('module-alias/register'); | ||||||
| require('./built').default(); | require('./built').default(); | ||||||
|  |  | ||||||
|  | @ -25,6 +25,11 @@ | ||||||
| 		"test": "gulp test", | 		"test": "gulp test", | ||||||
| 		"format": "gulp format" | 		"format": "gulp format" | ||||||
| 	}, | 	}, | ||||||
|  | 	"_moduleAliases": { | ||||||
|  | 		"package.json": "package.json", | ||||||
|  | 		"~": "built", | ||||||
|  | 		"$": "locales" | ||||||
|  | 	}, | ||||||
| 	"resolutions": { | 	"resolutions": { | ||||||
| 		"gulp-cssnano/cssnano/postcss-svgo/svgo/js-yaml": "^3.13.1", | 		"gulp-cssnano/cssnano/postcss-svgo/svgo/js-yaml": "^3.13.1", | ||||||
| 		"lodash": "^4.17.13" | 		"lodash": "^4.17.13" | ||||||
|  | @ -173,6 +178,7 @@ | ||||||
| 		"lolex": "4.1.0", | 		"lolex": "4.1.0", | ||||||
| 		"lookup-dns-cache": "2.1.0", | 		"lookup-dns-cache": "2.1.0", | ||||||
| 		"mocha": "6.2.0", | 		"mocha": "6.2.0", | ||||||
|  | 		"module-alias": "2.2.1", | ||||||
| 		"moji": "0.5.1", | 		"moji": "0.5.1", | ||||||
| 		"ms": "2.1.2", | 		"ms": "2.1.2", | ||||||
| 		"nested-property": "1.0.1", | 		"nested-property": "1.0.1", | ||||||
|  |  | ||||||
|  | @ -7341,6 +7341,11 @@ mocha@^5.2.0: | ||||||
|     mkdirp "0.5.1" |     mkdirp "0.5.1" | ||||||
|     supports-color "5.4.0" |     supports-color "5.4.0" | ||||||
| 
 | 
 | ||||||
|  | module-alias@2.2.1: | ||||||
|  |   version "2.2.1" | ||||||
|  |   resolved "https://registry.yarnpkg.com/module-alias/-/module-alias-2.2.1.tgz#553aea9dc7f99cd45fd75e34a574960dc46550da" | ||||||
|  |   integrity sha512-LTez0Eo+YtfUhgzhu/LqxkUzOpD+k5C0wXBLun0L1qE2BhHf6l09dqam8e7BnoMYA6mAlP0vSsGFQ8QHhGN/aQ== | ||||||
|  | 
 | ||||||
| moji@0.5.1: | moji@0.5.1: | ||||||
|   version "0.5.1" |   version "0.5.1" | ||||||
|   resolved "https://registry.yarnpkg.com/moji/-/moji-0.5.1.tgz#088eecd1c22c8f31a240adcf9c95e54f33eb54fb" |   resolved "https://registry.yarnpkg.com/moji/-/moji-0.5.1.tgz#088eecd1c22c8f31a240adcf9c95e54f33eb54fb" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue