mirror of
https://github.com/zhigang1992/mobx-utils.git
synced 2026-01-12 22:48:56 +08:00
25 lines
580 B
JavaScript
25 lines
580 B
JavaScript
export default {
|
|
input: "lib/mobx-utils.js",
|
|
output: [
|
|
{
|
|
format: "umd",
|
|
file: "mobx-utils.umd.js",
|
|
name: "mobxUtils",
|
|
globals: {
|
|
mobx: "mobx",
|
|
},
|
|
},
|
|
{
|
|
format: "es",
|
|
file: "mobx-utils.module.js",
|
|
},
|
|
],
|
|
external: ["mobx"],
|
|
onwarn: function (warning, warn) {
|
|
// https://github.com/rollup/rollup/wiki/Troubleshooting#this-is-undefined
|
|
if ("THIS_IS_UNDEFINED" === warning.code) return
|
|
|
|
warn(warning)
|
|
},
|
|
}
|