File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ var Config = function () {
141
141
( function ( ) {
142
142
var alias = nextConfig . resolve . alias ;
143
143
Object . keys ( alias ) . map ( function ( key , i ) {
144
- if ( key . indexOf ( '$' ) === - 1 && / ^ \/ .+ / . test ( alias [ key ] ) ) {
144
+ if ( key . indexOf ( '$' ) !== key . length - 1 && / ^ \/ .+ / . test ( alias [ key ] ) ) {
145
145
alias [ key ] = sysPath . join ( _this2 . _config . cwd , alias [ key ] ) ;
146
146
}
147
147
} ) ;
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class Config {
123
123
if ( nextConfig . resolve && nextConfig . resolve . alias ) {
124
124
let alias = nextConfig . resolve . alias
125
125
Object . keys ( alias ) . map ( ( key , i ) => {
126
- if ( key . indexOf ( '$' ) === - 1 && / ^ \/ .+ / . test ( alias [ key ] ) ) {
126
+ if ( key . indexOf ( '$' ) !== key . length - 1 && / ^ \/ .+ / . test ( alias [ key ] ) ) {
127
127
alias [ key ] = sysPath . join ( this . _config . cwd , alias [ key ] )
128
128
}
129
129
} )
You can’t perform that action at this time.
0 commit comments