Skip to content

Commit 2a0d874

Browse files
committed
rollup config babel plugin remove
1 parent ab7f027 commit 2a0d874

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rollup.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import image from "rollup-plugin-img";
33
import pkg from "./package.json";
44

55
const external = id => !id.startsWith("/") && !id.startsWith(".");
6-
const getBabelOptions = () => ({
7-
runtimeHelpers: true,
8-
plugins: ["@babel/transform-runtime"],
9-
});
106

117
export default {
128
input: "./src/ImageSlider.jsx",
@@ -15,7 +11,7 @@ export default {
1511
format: "cjs",
1612
},
1713
plugins: [
18-
babel(getBabelOptions()),
14+
babel({ runtimeHelpers: true }),
1915
image({ limit: 1000 }),
2016
],
2117
external,

0 commit comments

Comments
 (0)