BREAKING CHANGE: Migrate rewire interface from alias map to options
oklas opened this issue · 1 comments
oklas commented
Alias functions aliasWebpack
and aliasJest
alway wants alias map - that is not flexible and may be simplified. So if alias map may be loaded from tsconfig/jsconfig it may be omited.
Another problem is impossibility to specify path of tsconfig/jsconfig file, described in #57 which actually is required.
Another problem is #10 where we need to specify baseUrl
also as config option.
Therefore API need to be changed. Both functions aliasWebpack
and aliasJest
will receive options
- object with named options.
Options {
alias: { [alias: string]: string };
tsconfig: string;
jsconfig: string;
...
}