* @see https://webpack.js.org/configuration/resolve/
(config)
| 141 | * @see https://webpack.js.org/configuration/resolve/ |
| 142 | */ |
| 143 | function resolve(config) { |
| 144 | const strategy = { 'resolve.extensions': 'prepend' } |
| 145 | const merge = webpackMerge.smartStrategy(strategy) |
| 146 | |
| 147 | return () => prevConfig => |
| 148 | merge(prevConfig, { |
| 149 | resolve: config |
| 150 | }) |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * @see https://webpack.github.io/docs/configuration.html#context |
searching dependent graphs…