UNPKG

preact-pure-props

Version:

compare only the props. If the state does not change, do not re-ender.

22 lines (20 loc) 543 B
import builder from "@daybrush/builder"; import css from "rollup-plugin-css-bundle"; const preact = require("rollup-plugin-preact"); export default builder({ input: "./src/demo/index.tsx", tsconfig: "./tsconfig.build.json", sourcemap: false, format: "umd", output: "./public/dist/index.js", name: "app", exports: "named", plugins: [ css({ output: "./public/dist/index.css" }), preact({ noPropTypes: true, noEnv: true, noReactIs: true, }), ], });