react-native-auto-scrolling
Version:
Auto horizontal scrolling any component
24 lines (22 loc) • 517 B
JavaScript
import typescript from "@rollup/plugin-typescript";
import resolve from "@rollup/plugin-node-resolve";
import babel from "rollup-plugin-babel";
export default {
input: "src/index.tsx",
external: ["react", "react-native"],
output: {
format: "umd",
name: "react-native-auto-scrolling",
globals: {
react: "React",
"react-native": "ReactNative"
}
},
plugins: [
typescript({ tsconfig: "tsconfig.json" }),
resolve(),
babel({
exclude: "node_modules/**"
})
]
};