Skip to content

Commit 893691e

Browse files
committed
Include library aliasing for loaders too
1 parent 3b9d236 commit 893691e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/configure.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ export default function configure(options) {
167167
modules: webpackProp('resolveLoader.modules', [
168168
'node_modules',
169169
path.resolve(__dirname, '../node_modules')
170-
])
170+
]),
171+
alias: webpackProp('resolveLoader.alias', {
172+
[pkg.name]: res('.'),
173+
src: res('src')
174+
})
171175
}),
172176
plugins: (webpackConfig.plugins || []).filter( plugin => {
173177
let name = plugin && plugin.constructor.name;

0 commit comments

Comments
 (0)