appedemic / livescript-loader

livescript loader for webpack
19 stars 17 forks source link

Linked source map use full system path #12

Open Poky85 opened 7 years ago

Poky85 commented 7 years ago

I am using livescript-loader 0.1.5 with default options (map: "linked").

In compiled output there is source map linked using full-system path (see bellow). Is it correct? This completely breaks long-term cache because such cache would be system-path-dependent.

/* 1 */
/*!*******************************************************!*\
  !*** ./src/test.ls ***!
  \*******************************************************/
/***/ function(module, exports) {

// some code here...

//# sourceMappingURL=/Users/jiripokorny/www/myproject/node_modules/livescript-loader/index.js!/Users/jiripokorny/www/myproject/src/test.ls.map