Skip to content

Commit 691b8b6

Browse files
committed
chore: add sourcemap and update prepublish script
1 parent 9395519 commit 691b8b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"esbuild": "esbuild",
1717
"test": "jest",
1818
"postbuild": "npm run types && npm run bundlesize",
19-
"prepublishOnly": "npm run build"
19+
"prepublishOnly": "npm run build-rollup"
2020
},
2121
"main": "dist/react-tooltip.cjs.min.js",
2222
"module": "dist/react-tooltip.esm.min.js",

rollup.config.prod.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const name = 'ReactTooltip'
1515

1616
const external = [
1717
...Object.keys({ ...(pkg.peerDependencies ?? {}), ...(pkg.dependencies ?? {}) }),
18-
'react/jsx-runtime'
19-
];
18+
'react/jsx-runtime',
19+
]
2020

2121
const buildFormats = [
2222
{
@@ -115,6 +115,7 @@ const config = outputData.map(({ file, format, plugins: specificPLugins, globals
115115
format,
116116
name,
117117
globals,
118+
sourcemap: true,
118119
},
119120
external,
120121
plugins: specificPLugins,

0 commit comments

Comments
 (0)