安装 rollup
$ yarn add -D rollup
package.json
{
"name": "react-native-refined-components",
"version...我们需要安装并配置 CommonJS 和 node-resolve 插件。...答案是肯定的,我们只需要安装并配置 rollup-plugin-node-externals 插件即可。...: 'React',
'react-native': 'reactNative',
},
sourcemap: true,
},
plugins:.../dist/es/index.js', format: 'es' },
],
plugins: [typescript()],
external: ['react', 'react-native