mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-02 09:27:53 +01:00
0423540ae7
- moves project to babel 7 - moves from webpack to rollup - adds react and react-dom to dev dependencies - adds react-testing-libary and jest - adds first unit test - adds eslint and eslint plugins to dev dependencies
24 lines
559 B
JavaScript
24 lines
559 B
JavaScript
import babel from "rollup-plugin-babel";
|
|
import sass from 'rollup-plugin-sass';
|
|
import jsx from 'rollup-plugin-jsx';
|
|
|
|
import pkg from './package.json';
|
|
|
|
export default {
|
|
input: 'src/DataListInput.jsx',
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'cjs',
|
|
exports: 'named',
|
|
sourcemap: true,
|
|
strict: false
|
|
}
|
|
],
|
|
plugins: [
|
|
babel({ exclude: 'node_modules/**'}),
|
|
sass({ insert: true }),
|
|
jsx( {factory: 'React.createElement'} )
|
|
],
|
|
external: ['react', 'react-dom', 'prop-types']
|
|
} |