jlongster / monkey-hot-loader

A webpack loader to hot reload JavaScript modules
171 stars 11 forks source link

Not setting `devtool` property in webpack config results in a compile time error #3

Open kompot opened 9 years ago

kompot commented 9 years ago

If I do not set

config.devtool = 'source-map';

then I got Module build failed: Error: Final loader didn't return a Buffer or String message.

Commenting out

if(this.sourceMap === false) {
  return this.callback(null, [source, appendText]);
}

in index.js kinda fixes that.

hung-phan commented 9 years ago

Same problem

homerjam commented 8 years ago

+1

romeovs commented 8 years ago

+1

lastralla commented 8 years ago

+1