muinotify
Version:
muinotify has an imperative API that makes it easy to display snackbars, without having to handle their open/close state. It also enables you to stack them on top of one another (although this is discouraged by the Material Design guidelines).
38 lines (36 loc) • 739 B
JavaScript
import babel from "@rollup/plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import external from "rollup-plugin-peer-deps-external";
import { terser } from "rollup-plugin-terser";
export default [
{
input: "./src/index.js",
output: [
{
file: "./dist/index.js",
format: "cjs",
},
{
file: "./dist/index.es.js",
format: "es",
exports: "named",
},
],
plugins: [
babel({
exclude: "node_modules/**",
presets: [
[
"@babel/preset-react",
{
runtimeHelpers: true,
},
],
],
}),
external(),
resolve(),
terser(),
],
},
];