Skip to content

External sourcemaps in webpack are broken. This is a repo to repro this issue.

Notifications You must be signed in to change notification settings

davidreher/webpack-external-sourcemaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webpack-external-sourcemaps

External sourcemaps in webpack are broken. This is a repo to repro this issue.

How to build this demo?

cd child
npm run prepare
cd ../parent
npm run prepare
open dist/index.html

Resulting index.js without webpack/source-map-loader

var ChildService = (function () {
    function ChildService() {
    }
    ChildService.prototype.doSomething = function () {
        return "Hello World";
    };
    return ChildService;
})();
exports.ChildService = ChildService;
//# sourceMappingURL=index.js.map


/*****************
 ** WEBPACK FOOTER
 ** ../child/dist/index.js
 ** module id = 1
 ** module chunks = 0
 **/

Resulting index.ts with webpack/source-map-loader

export class ChildService {
    doSomething() {
        return "Hello World";
    }
}


/** WEBPACK FOOTER **
 ** C:/Users/fraetz.BAG/Documents/Projects/webpack-external-sourcemaps/child/index.ts
 **/

About

External sourcemaps in webpack are broken. This is a repo to repro this issue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published