UNPKG

deep-state-observer

Version:

Deep state observer is an state management library that will fire listeners only when specified object node (which also can be a wildcard) was changed.

65 lines (64 loc) 1.26 kB
import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import typescript from "@rollup/plugin-typescript"; export default [ { input: "index.ts", output: { file: "index.esm.js", format: "esm", }, plugins: [ typescript(), resolve({ browser: true, }), commonjs({ extensions: [".js", ".ts"] }), ], }, { input: "index.ts", output: { file: "index.cjs.js", format: "cjs", exports: "default", }, plugins: [ typescript(), resolve({ browser: true, }), commonjs({ extensions: [".js", ".ts"] }), ], }, { input: "index.ts", output: { name: "DeepStateObserver", file: "index.umd.js", format: "umd", exports: "default", }, plugins: [ typescript(), resolve({ browser: true, }), commonjs({ extensions: [".js", ".ts"] }), ], }, // { // input: "test.ts", // output: { // file: "test.esm.js", // format: "esm", // }, // plugins: [ // typescript(), // resolve({ // browser: true, // }), // commonjs({ extensions: [".js", ".ts"] }), // ], // }, ];