File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,10 @@ function aliasWebpack(options) {
139
139
140
140
const CracoAliasPlugin = {
141
141
overrideWebpackConfig : function ( { webpackConfig, pluginOptions} ) {
142
- return aliasWebpack ( pluginOptions . alias || configPaths ( ) ) ( webpackConfig )
142
+ return aliasWebpack ( pluginOptions ) ( webpackConfig )
143
143
} ,
144
144
overrideJestConfig : function ( { jestConfig, pluginOptions} ) {
145
- return aliasJest ( pluginOptions . alias || configPaths ( ) ) ( jestConfig )
145
+ return aliasJest ( pluginOptions ) ( jestConfig )
146
146
}
147
147
}
148
148
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function checkOutside(aliasMap) {
64
64
} , false )
65
65
if ( outside ) {
66
66
console . error (
67
- `https://github.com/oklas/react-app-rewire- alias#outside-of-root`
67
+ `https://github.com/oklas/react-app-alias#outside-of-root`
68
68
)
69
69
process . exit ( - 1 )
70
70
}
@@ -112,7 +112,7 @@ function configFilePath(configPath = '') {
112
112
113
113
function configPathsRaw ( confPath ) {
114
114
if ( ! confPath )
115
- throw Error ( 'react-app-rewire- alias:configPaths: there is no config file found' )
115
+ throw Error ( 'react-app-alias:configPaths: there is no [ts|js] config file found' )
116
116
117
117
const confdir = path . dirname ( confPath )
118
118
const conf = require ( confPath )
@@ -172,10 +172,10 @@ function aliasMapForJest(aliasMap) {
172
172
173
173
const CracoAliasPlugin = {
174
174
overrideWebpackConfig : function ( { webpackConfig, pluginOptions} ) {
175
- return aliasWebpack ( pluginOptions . alias || configPaths ( ) ) ( webpackConfig )
175
+ return aliasWebpack ( pluginOptions ) ( webpackConfig )
176
176
} ,
177
177
overrideJestConfig : function ( { jestConfig, pluginOptions} ) {
178
- return aliasJest ( pluginOptions . alias || configPaths ( ) ) ( jestConfig )
178
+ return aliasJest ( pluginOptions ) ( jestConfig )
179
179
}
180
180
}
181
181
You can’t perform that action at this time.
0 commit comments