Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 700159e

Browse files
committed
Removed sourceMaps for UMD build
1 parent 1462639 commit 700159e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rollup.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ const umd = [
5858
input: "src/index.tsx",
5959
output: {
6060
file: `umd/${pkg.name}.js`,
61-
sourcemap: true,
6261
format: "umd",
6362
name: "ReactHashScroll",
6463
globals,
@@ -71,18 +70,16 @@ const umd = [
7170
babel({
7271
exclude: /node_modules/,
7372
babelHelpers: "runtime",
74-
sourceMaps: true,
7573
plugins: [["@babel/transform-runtime", { useESModules: true }]],
7674
rootMode: "upward",
7775
}),
78-
typescript(),
76+
typescript({ sourceMap: false }),
7977
],
8078
},
8179
{
8280
input: "src/index.tsx",
8381
output: {
8482
file: `umd/${pkg.name}.min.js`,
85-
sourcemap: true,
8683
format: "umd",
8784
name: "ReactHashScroll",
8885
globals,
@@ -95,11 +92,10 @@ const umd = [
9592
babel({
9693
exclude: /node_modules/,
9794
babelHelpers: "runtime",
98-
sourceMaps: true,
9995
plugins: [["@babel/transform-runtime", { useESModules: true }]],
10096
rootMode: "upward",
10197
}),
102-
typescript(),
98+
typescript({ sourceMap: false }),
10399
terser(),
104100
],
105101
},

0 commit comments

Comments
 (0)