We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 628bd4b commit 011ed56Copy full SHA for 011ed56
src/NunjucksWebpackPlugin.js
@@ -60,13 +60,10 @@ class NunjucksWebpackPlugin {
60
fileDependencies.push(template.from);
61
}
62
63
- const localContext = template.context ? template.context : null;
64
- const localCallback = template.callback ? template.callback : null;
65
-
66
const res = nunjucks.render(
67
template.from,
68
- Object.assign({}, localContext),
69
- localCallback
+ template.context ? template.context : null,
+ template.callback ? template.callback : null
70
);
71
72
let webpackTo = template.to;
0 commit comments