Skip to content

Commit 0121adb

Browse files
committed
build: add sourcemaps
1 parent c9519fb commit 0121adb

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
22
node_modules
33
/matrix.*js
4+
/matrix.*.map
45
coverage/

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"files": [
1919
"matrix.d.ts",
2020
"matrix.js",
21+
"matrix.js.map",
2122
"matrix.mjs",
23+
"matrix.mjs.map",
2224
"matrix.umd.js",
25+
"matrix.umd.js.map",
2326
"src"
2427
],
2528
"scripts": {

rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default [
99
file: 'matrix.js',
1010
format: 'cjs',
1111
exports: 'named',
12+
sourcemap: true,
1213
},
1314
plugins: [resolve()],
1415
},
@@ -18,6 +19,7 @@ export default [
1819
file: 'matrix.mjs',
1920
format: 'esm',
2021
exports: 'named',
22+
sourcemap: true,
2123
},
2224
plugins: [resolve()],
2325
},
@@ -28,6 +30,7 @@ export default [
2830
file: 'matrix.umd.js',
2931
format: 'umd',
3032
exports: 'named',
33+
sourcemap: true,
3134
},
3235
plugins: [resolve(), commonJS(), terser()],
3336
},

0 commit comments

Comments
 (0)