Apply aliasing in resolving module

This commit is contained in:
Acid Chicken (硫酸鶏) 2019-08-11 08:51:41 +09:00
parent 3eef84583d
commit 1dc433b292
No known key found for this signature in database
GPG key ID: 5388F56C75B677A1
3 changed files with 12 additions and 0 deletions

View file

@ -1 +1,2 @@
require('module-alias/register');
require('./built').default();

View file

@ -25,6 +25,11 @@
"test": "gulp test",
"format": "gulp format"
},
"_moduleAliases": {
"package.json": "package.json",
"~": "built",
"$": "locales"
},
"resolutions": {
"gulp-cssnano/cssnano/postcss-svgo/svgo/js-yaml": "^3.13.1",
"lodash": "^4.17.13"
@ -173,6 +178,7 @@
"lolex": "4.1.0",
"lookup-dns-cache": "2.1.0",
"mocha": "6.2.0",
"module-alias": "2.2.1",
"moji": "0.5.1",
"ms": "2.1.2",
"nested-property": "1.0.1",

View file

@ -7341,6 +7341,11 @@ mocha@^5.2.0:
mkdirp "0.5.1"
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:
version "0.5.1"
resolved "https://registry.yarnpkg.com/moji/-/moji-0.5.1.tgz#088eecd1c22c8f31a240adcf9c95e54f33eb54fb"