Skip to content

Commit e2c02ac

Browse files
hiyukievilebottnawi
authored andcommitted
fix: use resourcePath instead of resource (#316)
1 parent a23a466 commit e2c02ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getOptions(loaderContext) {
1616
};
1717

1818
// We need to set the filename because otherwise our WebpackFileManager will receive an undefined path for the entry
19-
options.filename = loaderContext.resource;
19+
options.filename = loaderContext.resourcePath;
2020

2121
// When no paths are given, we use the webpack resolver
2222
if ('paths' in options === false) {

0 commit comments

Comments
 (0)