Skip to content

Commit cd83bbf

Browse files
committed
style: fix formatting in build config
- Fix indentation in babel.config.js - Use Set instead of Array for EXTERNAL_PACKAGES in rollup config
1 parent 6c7e483 commit cd83bbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.config/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
absoluteRuntime: false,
1010
corejs: false,
1111
helpers: true,
12-
regenerator: false,
12+
regenerator: false,
1313
version: '^7.27.1',
1414
},
1515
],

.config/rollup.base.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import commonjsPlugin from '@rollup/plugin-commonjs'
66
import jsonPlugin from '@rollup/plugin-json'
77
import { nodeResolve } from '@rollup/plugin-node-resolve'
88

9-
const EXTERNAL_PACKAGES = ['@socketsecurity/registry']
9+
const EXTERNAL_PACKAGES = new Set(['@socketsecurity/registry'])
1010

1111
function isBuiltin(id) {
1212
return (
@@ -65,7 +65,7 @@ export default function baseConfig(extendConfig = {}) {
6565
id.endsWith('.d.cts') ||
6666
id.endsWith('.d.mts') ||
6767
id.endsWith('.d.ts') ||
68-
EXTERNAL_PACKAGES.includes(pkgName) ||
68+
EXTERNAL_PACKAGES.has(pkgName) ||
6969
isBuiltin(rawId)
7070
)
7171
},

0 commit comments

Comments
 (0)