forked from instea/react-native-popup-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.babel.js
More file actions
33 lines (30 loc) · 776 Bytes
/
rollup.config.babel.js
File metadata and controls
33 lines (30 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import resolve from 'rollup-plugin-node-resolve'
import replace from 'rollup-plugin-replace'
export default {
input: './src/index.js',
output: {
file: './build/rnpm.js',
format: 'umd',
name: 'ReactNativePopupMenu',
sourcemap: true,
},
plugins: [
babel({
exclude: 'node_modules/**',
babelrc: false,
presets: [
['@babel/preset-env', { modules: false }],
'@babel/preset-react',
],
plugins: ['@babel/plugin-proposal-class-properties'],
}),
replace({
'process.env.NODE_ENV': JSON.stringify('development'),
}),
resolve(),
commonjs(),
],
external: ['react', 'react-dom', 'react-native'],
}