Skip to content

Commit 09f3e72

Browse files
committed
format
1 parent 496f206 commit 09f3e72

File tree

6 files changed

+17
-51
lines changed

6 files changed

+17
-51
lines changed

packages/app-compat/rollup.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ const esmBuilds = [
5757
plugins: [...es5BuildPlugins, emitModulePackageFile()],
5858
external: id =>
5959
deps.some(
60-
dep =>
61-
dep !== 'idb' &&
62-
(id === dep || id.startsWith(`${dep}/`))
60+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
6361
)
6462
},
6563
{
@@ -81,9 +79,7 @@ const esmBuilds = [
8179
plugins: [...es2017BuildPlugins, emitModulePackageFile()],
8280
external: id =>
8381
deps.some(
84-
dep =>
85-
dep !== 'idb' &&
86-
(id === dep || id.startsWith(`${dep}/`))
82+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
8783
)
8884
},
8985
{
@@ -96,9 +92,7 @@ const esmBuilds = [
9692
plugins: es2017BuildPlugins,
9793
external: id =>
9894
deps.some(
99-
dep =>
100-
dep !== 'idb' &&
101-
(id === dep || id.startsWith(`${dep}/`))
95+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
10296
)
10397
}
10498
];

packages/app/rollup.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ const esmBuilds = [
7777
},
7878
external: id =>
7979
deps.some(
80-
dep =>
81-
dep !== 'idb' &&
82-
(id === dep || id.startsWith(`${dep}/`))
80+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
8381
),
8482
plugins: [
8583
...es2017BuildPlugins,
@@ -98,9 +96,7 @@ const cjsBuilds = [
9896
output: [{ file: pkg.main, format: 'cjs', sourcemap: true }],
9997
external: id =>
10098
deps.some(
101-
dep =>
102-
dep !== 'idb' &&
103-
(id === dep || id.startsWith(`${dep}/`))
99+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
104100
),
105101
plugins: [
106102
...es5BuildPlugins,

packages/installations-compat/rollup.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ const esmBuilds = [
4444
output: { file: pkg.esm5, format: 'es', sourcemap: true },
4545
external: id =>
4646
deps.some(
47-
dep =>
48-
dep !== 'idb' &&
49-
(id === dep || id.startsWith(`${dep}/`))
47+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
5048
),
5149
plugins: [...es5BuildPlugins, emitModulePackageFile()]
5250
},
@@ -59,9 +57,7 @@ const esmBuilds = [
5957
},
6058
external: id =>
6159
deps.some(
62-
dep =>
63-
dep !== 'idb' &&
64-
(id === dep || id.startsWith(`${dep}/`))
60+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
6561
),
6662
plugins: [...es2017BuildPlugins, emitModulePackageFile()]
6763
}
@@ -73,9 +69,7 @@ const cjsBuilds = [
7369
output: { file: pkg.main, format: 'cjs', sourcemap: true },
7470
external: id =>
7571
deps.some(
76-
dep =>
77-
dep !== 'idb' &&
78-
(id === dep || id.startsWith(`${dep}/`))
72+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
7973
),
8074
plugins: es5BuildPlugins
8175
}

packages/installations/rollup.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ const esmBuilds = [
4747
output: [{ file: pkg.esm5, format: 'es', sourcemap: true }],
4848
external: id =>
4949
deps.some(
50-
dep =>
51-
dep !== 'idb' &&
52-
(id === dep || id.startsWith(`${dep}/`))
50+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
5351
),
5452
plugins: [
5553
...es5BuildPlugins,
@@ -66,9 +64,7 @@ const esmBuilds = [
6664
},
6765
external: id =>
6866
deps.some(
69-
dep =>
70-
dep !== 'idb' &&
71-
(id === dep || id.startsWith(`${dep}/`))
67+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
7268
),
7369
plugins: [
7470
...es2017BuildPlugins,

packages/messaging-compat/rollup.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ const esmBuilds = [
5353
plugins: [...es5BuildPlugins, emitModulePackageFile()],
5454
external: id =>
5555
deps.some(
56-
dep =>
57-
dep !== 'idb' &&
58-
(id === dep || id.startsWith(`${dep}/`))
56+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
5957
)
6058
},
6159
{
@@ -68,9 +66,7 @@ const esmBuilds = [
6866
plugins: [...es2017BuildPlugins, emitModulePackageFile()],
6967
external: id =>
7068
deps.some(
71-
dep =>
72-
dep !== 'idb' &&
73-
(id === dep || id.startsWith(`${dep}/`))
69+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
7470
)
7571
}
7672
];
@@ -82,9 +78,7 @@ const cjsBuilds = [
8278
plugins: es5BuildPlugins,
8379
external: id =>
8480
deps.some(
85-
dep =>
86-
dep !== 'idb' &&
87-
(id === dep || id.startsWith(`${dep}/`))
81+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
8882
)
8983
}
9084
];

packages/messaging/rollup.config.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ const esmBuilds = [
7373
],
7474
external: id =>
7575
deps.some(
76-
dep =>
77-
dep !== 'idb' &&
78-
(id === dep || id.startsWith(`${dep}/`))
76+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
7977
)
8078
},
8179
// sw builds
@@ -85,9 +83,7 @@ const esmBuilds = [
8583
plugins: es2017BuildPlugins,
8684
external: id =>
8785
deps.some(
88-
dep =>
89-
dep !== 'idb' &&
90-
(id === dep || id.startsWith(`${dep}/`))
86+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
9187
)
9288
}
9389
];
@@ -102,9 +98,7 @@ const cjsBuilds = [
10298
],
10399
external: id =>
104100
deps.some(
105-
dep =>
106-
dep !== 'idb' &&
107-
(id === dep || id.startsWith(`${dep}/`))
101+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
108102
)
109103
},
110104
// sw build
@@ -121,9 +115,7 @@ const cjsBuilds = [
121115
],
122116
external: id =>
123117
deps.some(
124-
dep =>
125-
dep !== 'idb' &&
126-
(id === dep || id.startsWith(`${dep}/`))
118+
dep => dep !== 'idb' && (id === dep || id.startsWith(`${dep}/`))
127119
)
128120
}
129121
];

0 commit comments

Comments
 (0)