Fix amd-inject-loader for Webpack 4

[MAILPOET-1667]
This commit is contained in:
Jan Jakeš
2019-01-10 09:32:17 +01:00
parent 04fb9033d2
commit e2cab54df6
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
var amdInjectLoader = require('amd-inject-loader');
// fix original 'amd-inject-loader' for Webpack 4 by adding missing 'options' field to its context
module.exports = function amdInjectLoaderFixed(input) {
return amdInjectLoader.call(Object.assign({}, this, { options: {} }), input);
};