Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit 622f48e

Browse files
csnoverscottgonzalez
authored andcommitted
Generate a source map so tests point to the correct source errors
Ref #167
1 parent eb93444 commit 622f48e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ module.exports = function(grunt) {
4848
entry: '../pointerevents.js'
4949
}).then(function (bundle) {
5050
var umd = bundle.toUmd({
51-
name: 'PointerEventsPolyfill'
51+
name: 'PointerEventsPolyfill',
52+
sourceMap: true,
53+
sourceMapFile: 'dist/PEP.js'
5254
});
5355
grunt.file.write('dist/PEP.js', header + umd.code);
56+
grunt.file.write('dist/PEP.js.map', umd.map.toString());
5457
}).then(
5558
function() {
5659
grunt.log.ok();

0 commit comments

Comments
 (0)