salemdar / angular2-cookie

Implementation of Angular 1.x $cookies service to Angular 2
MIT License
109 stars 29 forks source link

Incorrect sourcemappings in npm package #47

Open dozer75 opened 7 years ago

dozer75 commented 7 years ago

The map files in the npm package is pointing to a reference that doesn't exist in the npm structure (../../src), this causes bundling of the cookie package with for example systemjs to find the correct source file since these are placed in the ts folder. The map files should be based on ts and not on ../../src.

The build structure should reflect the npm package layout so that map files is handled correctly. Look for example at the rxjs library and the map files , these reflect the npm structure.