": "0.1.0",
"description": "refined react-native components",
"main": "dist/cjs/index.js",
"module...而 Rollup 力图实现 ES 模块的规范, 因此,加载 CommonJS 模块和使用 Node 模块位置解析逻辑都被实现为可选插件,默认情况下不在 Rollup 内核中。...iife/umd 包
globals: {
react: 'React',
'react-native': 'reactNative',
},.../dist/es/index.js', format: 'es' },
],
plugins: [typescript()],
external: ['react', 'react-native..."]
}
rollup-plugin-multi-input 使用
组件库比较大时,我们可能需要让我们的库支持 tree-shaking。