Error: .inputSourceMap must be a boolean, object, or undefined
because of babel-loader does not accept SourceMap as 'string' type.
// code inside babel (sorry no link. can't Find in GitHub)
function assertInputSourceMap(loc, value) {
if (value !== undefined && typeof value !== "boolean" && (typeof value !== "object" || !value)) {
throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);
}
return value;
}
Hi. First of all, sorry about my terrible English. ( almost all Japanese is. )
We are trying to transpile emdebedded javascript code from lodash/template by babel 8.
above setting cause bable-loader Error.
because of babel-loader does not accept SourceMap as 'string' type.
I tried patch to lodash-template-webpack-loader (local). https://github.com/kmck/lodash-template-webpack-loader/blob/48c67eddd2f2a159258a6f7fee75219ad33670f5/index.js#L68
and works fine.
below works too, result is different however.
We hope that this module to be available switching sourceMap type to Json object.