Skip to content

Commit

Permalink
fix(umd): use correct sourcemaps in umd bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed May 29, 2020
1 parent 2084105 commit 30cfca3
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 13 deletions.
75 changes: 64 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"rollup": "^1.32.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rxjs": "^6.5.5",
"sinon": "^9.0.2",
Expand Down
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import { terser } from 'rollup-plugin-terser';
import sourcemaps from 'rollup-plugin-sourcemaps';

const input =
'dist/angular-draggable-droppable/bundles/angular-draggable-droppable.umd.js';
Expand All @@ -21,8 +22,9 @@ const base = {
}
},
plugins: [
resolve({ module: true }),
commonjs()
resolve(),
commonjs(),
sourcemaps()
],
external: ['@angular/core', '@angular/common', 'rxjs', 'rxjs/operators']
};
Expand Down

0 comments on commit 30cfca3

Please sign in to comment.