Skip to content

Commit bca9ccc

Browse files
committed
Bump rollup plugins
1 parent c758376 commit bca9ccc

File tree

3 files changed

+74
-226
lines changed

3 files changed

+74
-226
lines changed

package.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@
2727
"url": "git+https://github.com/springload/react-accessible-accordion.git"
2828
},
2929
"jest": {
30-
"setupFiles": ["./src/setupTests.js"],
30+
"setupFiles": [
31+
"./src/setupTests.js"
32+
],
3133
"setupTestFrameworkScriptFile": "./src/setupTestFramework.js",
32-
"testPathIgnorePatterns": ["/node_modules/", "/dist/"]
34+
"testPathIgnorePatterns": [
35+
"/node_modules/",
36+
"/dist/"
37+
]
3338
},
3439
"keywords": [
3540
"react",
@@ -39,7 +44,9 @@
3944
"accessible",
4045
"accessibility"
4146
],
42-
"authors": ["Vincent Audebert <[email protected]>"],
47+
"authors": [
48+
"Vincent Audebert <[email protected]>"
49+
],
4350
"contributors": [
4451
{
4552
"name": "Mitch Ryan",
@@ -93,12 +100,12 @@
93100
"react": "^16.4.0",
94101
"react-dom": "^16.4.0",
95102
"react-test-renderer": "^16.4.0",
96-
"rollup": "^0.59.4",
97-
"rollup-plugin-babel": "^4.0.2",
98-
"rollup-plugin-commonjs": "^9.1.0",
99-
"rollup-plugin-eslint": "^4.0.0",
100-
"rollup-plugin-node-resolve": "^3.3.0",
101-
"rollup-plugin-replace": "^2.0.0",
103+
"rollup": "^0.68.0",
104+
"rollup-plugin-babel": "^4.1.0",
105+
"rollup-plugin-commonjs": "^9.2.0",
106+
"rollup-plugin-eslint": "^5.0.0",
107+
"rollup-plugin-node-resolve": "^4.0.0",
108+
"rollup-plugin-replace": "^2.1.0",
102109
"style-loader": "^0.21.0",
103110
"webpack": "^4.5.0",
104111
"webpack-cli": "^3.1.0",
@@ -120,7 +127,9 @@
120127
},
121128
"lint-staged": {
122129
"linters": {
123-
"*.{js,jsx}": ["eslint"]
130+
"*.{js,jsx}": [
131+
"eslint"
132+
]
124133
}
125134
}
126135
}

rollup.config.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
import resolve from 'rollup-plugin-node-resolve';
2-
import eslint from 'rollup-plugin-eslint';
2+
import { eslint } from 'rollup-plugin-eslint';
33
import babel from 'rollup-plugin-babel';
44
import commonjs from 'rollup-plugin-commonjs';
55
import replace from 'rollup-plugin-replace';
66
import pkg from './package.json';
77

8+
const output = {
9+
name: 'reactAccessibleAccordion',
10+
globals: {
11+
react: 'React',
12+
},
13+
};
14+
815
export default [
916
{
1017
input: 'src/index.js',
1118
external: ['react', 'react-dom'],
1219
output: [
13-
{ file: pkg.main, format: 'umd', name: 'reactAccessibleAccordion' },
14-
{ file: pkg['jsnext:main'], format: 'es' },
20+
{
21+
...output,
22+
file: pkg.main,
23+
format: 'umd',
24+
},
25+
{
26+
...output,
27+
file: pkg['jsnext:main'],
28+
format: 'es',
29+
},
1530
],
16-
name: 'reactAccessibleAccordion',
1731
plugins: [
1832
replace({
1933
'process.env.NODE_ENV': JSON.stringify('production'),
@@ -24,7 +38,9 @@ export default [
2438
browser: true,
2539
}),
2640
eslint(),
27-
babel(),
41+
babel({
42+
exclude: 'node_modules/**',
43+
}),
2844
commonjs(),
2945
],
3046
},

0 commit comments

Comments
 (0)