@igorlima-draft/react-credit-card-input
Version:
A credit/debit card input field for React
37 lines (35 loc) • 781 B
JavaScript
import babel from 'rollup-plugin-babel';
export default {
input: `${__dirname}/src/index.js`,
output: {
name: 'CreditCardInput',
file: `${__dirname}/lib/index.js`,
format: 'umd',
globals: {
react: 'React',
'react-dom': 'ReactDOM',
payment: 'payment',
'credit-card-type': 'creditCardType',
'styled-components': 'styled',
'is-valid-zip': 'isValidZip'
}
},
external: [
'react',
'react-dom',
'credit-card-type',
'payment',
'styled-components',
'is-valid-zip'
],
plugins: [
babel({
presets: [['env', { modules: false }], 'react', 'flow'],
plugins: [
'external-helpers',
'transform-class-properties',
'transform-object-rest-spread'
]
})
]
};