Skip to content

Commit c13d352

Browse files
committed
pkg: Upgrade rollup plugins
1 parent 1bf88b4 commit c13d352

File tree

12 files changed

+126
-105
lines changed

12 files changed

+126
-105
lines changed

packages/core/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
terser,
99
typeConfig,
1010
typeConfigNext,
11+
onwarn,
1112
} from 'rollup-plugins';
1213

1314
import pkg from './package.json' with { type: 'json' };
@@ -30,6 +31,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
3031
configs.push({
3132
input: 'lib/index.js',
3233
output: [{ file: pkg.unpkg, format: 'umd', name: 'RDC.Core' }],
34+
onwarn,
3335
plugins: [
3436
babel({
3537
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -61,6 +63,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
6163
input,
6264
external: isExternal,
6365
output: [{ file: output, format: 'cjs' }],
66+
onwarn,
6467
plugins: [
6568
babel({
6669
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/endpoint/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
resolve,
88
replace,
99
terser,
10+
onwarn,
1011
} from 'rollup-plugins';
1112

1213
import pkg from './package.json' with { type: 'json' };
@@ -29,6 +30,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
2930
configs.push({
3031
input: 'lib/index.js',
3132
output: [{ file: pkg.unpkg, format: 'umd', name: 'Endpoint' }],
33+
onwarn,
3234
plugins: [
3335
babel({
3436
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -59,6 +61,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
5961
input: 'lib/index.js',
6062
external: isExternal,
6163
output: [{ file: pkg.main, format: 'cjs' }],
64+
onwarn,
6265
plugins: [
6366
babel({
6467
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/graphql/rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
replace,
88
terser,
99
typeConfig,
10-
typeConfigNext,
10+
onwarn,
1111
} from 'rollup-plugins';
1212

1313
import pkg from './package.json' with { type: 'json' };
@@ -29,6 +29,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
2929
configs.push({
3030
input: 'lib/index.js',
3131
output: [{ file: pkg.unpkg, format: 'umd', name: 'GraphQL' }],
32+
onwarn,
3233
plugins: [
3334
babel({
3435
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -55,6 +56,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
5556
input: 'lib/index.js',
5657
external: isExternal,
5758
output: [{ file: pkg.main, format: 'cjs' }],
59+
onwarn,
5860
plugins: [
5961
babel({
6062
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/img/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
resolve,
88
replace,
99
terser,
10+
onwarn,
1011
} from 'rollup-plugins';
1112

1213
import pkg from './package.json' with { type: 'json' };
@@ -40,6 +41,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node16') {
4041
},
4142
},
4243
],
44+
onwarn,
4345
plugins: [
4446
babel({
4547
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -65,6 +67,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node16') {
6567
input: 'lib/index.js',
6668
external: isExternal,
6769
output: [{ file: pkg.main, format: 'cjs', inlineDynamicImports: true }],
70+
onwarn,
6871
plugins: [
6972
babel({
7073
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/normalizr/rollup.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
dts,
66
resolve,
77
terser,
8+
onwarn,
89
} from 'rollup-plugins';
910

1011
import pkg from './package.json' with { type: 'json' };
@@ -35,6 +36,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
3536
input: 'lib/index.js',
3637
output: [{ file: `${destBase}.es${destExtension}`, format: 'es' }],
3738
external: id => id === '..' || isExternal(id),
39+
onwarn,
3840
plugins: [
3941
babel({
4042
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -68,6 +70,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
6870
name: snakeCase(name),
6971
},
7072
],
73+
onwarn,
7174
plugins: [
7275
babel({
7376
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -94,6 +97,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
9497
input: 'lib/index.js',
9598
output: [{ file: `${destBase}${destExtension}`, format: 'cjs' }],
9699
external: id => id === '..' || isExternal(id),
100+
onwarn,
97101
plugins: [
98102
babel({
99103
exclude: ['node_modules/**', '/**__tests__/**'],

packages/react/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
terser,
1010
typeConfig,
1111
typeConfigNext,
12+
onwarn,
1213
} from 'rollup-plugins';
1314

1415
import pkg from './package.json' with { type: 'json' };
@@ -48,6 +49,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
4849
},
4950
},
5051
],
52+
onwarn,
5153
plugins: [
5254
babel({
5355
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -99,6 +101,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
99101
input,
100102
external: isExternal,
101103
output: [{ file: output, format: 'cjs', inlineDynamicImports: true }],
104+
onwarn,
102105
plugins: [
103106
babel({
104107
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/rest/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
terser,
99
typeConfig,
1010
typeConfigNext,
11+
onwarn,
1112
} from 'rollup-plugins';
1213

1314
import pkg from './package.json' with { type: 'json' };
@@ -31,6 +32,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
3132
configs.push({
3233
input: 'lib/index.js',
3334
output: [{ file: pkg.unpkg, format: 'umd', name: 'Rest' }],
35+
onwarn,
3436
plugins: [
3537
babel({
3638
exclude: ['node_modules/**', '/**__tests__/**'],
@@ -62,6 +64,7 @@ if (process.env.BROWSERSLIST_ENV !== 'node12') {
6264
input,
6365
external: isExternal,
6466
output: [{ file: output, format: 'cjs' }],
67+
onwarn,
6568
plugins: [
6669
babel({
6770
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/test/rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { babel, banner, commonjs, resolve } from 'rollup-plugins';
1+
import { babel, banner, commonjs, resolve, onwarn } from 'rollup-plugins';
22

33
import pkg from './package.json' with { type: 'json' };
44

@@ -33,6 +33,7 @@ export default [
3333
input: 'lib/index.js',
3434
external: id => id === '..' || isExternal(id),
3535
output: [{ file: nativeOrNormalPath(pkg.main), format: 'cjs' }],
36+
onwarn,
3637
plugins: [
3738
babel({
3839
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],
@@ -56,6 +57,7 @@ export default [
5657
format: 'cjs',
5758
},
5859
],
60+
onwarn,
5961
plugins: [
6062
babel({
6163
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

packages/use-enhanced-reducer/rollup.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
resolve,
88
replace,
99
terser,
10+
onwarn,
1011
} from 'rollup-plugins';
1112

1213
import pkg from './package.json' with { type: 'json' };
@@ -44,6 +45,7 @@ export default [
4445
},
4546
},
4647
],
48+
onwarn,
4749
plugins: [
4850
babel({
4951
exclude: ['node_modules/**', '**/__tests__/**'],
@@ -68,6 +70,7 @@ export default [
6870
input: 'lib/index.js',
6971
external: isExternal,
7072
output: [{ file: pkg.main, format: 'cjs' }],
73+
onwarn,
7174
plugins: [
7275
babel({
7376
exclude: ['node_modules/**', '**/__tests__/**', '**/*.d.ts'],

scripts/rollup-plugins/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"license": "ISC",
1111
"description": "",
1212
"dependencies": {
13-
"@rollup/plugin-babel": "^5.3.0",
14-
"@rollup/plugin-commonjs": "^21.0.1",
15-
"@rollup/plugin-json": "^4.1.0",
16-
"@rollup/plugin-node-resolve": "^13.1.3",
17-
"@rollup/plugin-replace": "^4.0.0",
13+
"@rollup/plugin-babel": "^6.0.4",
14+
"@rollup/plugin-commonjs": "^28.0.2",
15+
"@rollup/plugin-json": "^6.1.0",
16+
"@rollup/plugin-node-resolve": "^16.0.0",
17+
"@rollup/plugin-replace": "^6.0.2",
1818
"rollup-plugin-banner2": "^1.3.1",
1919
"rollup-plugin-dts": "^6.1.1",
2020
"rollup-plugin-filesize": "^10.0.0",

0 commit comments

Comments
 (0)