Skip to content

Commit 012cc29

Browse files
committed
Fix preprocess
1 parent 15caf43 commit 012cc29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ module.exports = function(source, map) {
3535

3636
const handleWarning = warning => this.emitWarning(new Error(warning));
3737

38-
options.preprocess = { filename: compileOptions.filename };
38+
options.preprocess = options.preprocess || {};
39+
options.preprocess.filename = compileOptions.filename;
3940

4041
preprocess(source, options.preprocess).then(processed => {
4142
if (processed.dependencies && this.addDependency) {

0 commit comments

Comments
 (0)