mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-11-29 20:19:09 +01:00
2ade3865d1
- rewrites DataListInput as a functional component - changes version to 2.0.0 - describes versioning in README - adds more unit tests - adds snapshot tests - adds better a11y support by adding aria-labels and roles
25 lines
532 B
JavaScript
25 lines
532 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'],
|
|
};
|