Skip to content

Commit 76409a7

Browse files
committed
Convert glob and normalize constants to INLINE requires
Use INLINE for LICENSE_GLOB constants and registry scope constants for build optimization.
1 parent ad47ab5 commit 76409a7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

registry/src/lib/globs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ export function globStreamLicenses(
136136
]
137137
if (ignoreOriginals) {
138138
ignore.push(
139-
/*@__PURE__*/ require('./constants/LICENSE_ORIGINAL_GLOB_RECURSIVE.js'),
139+
/*@__INLINE__*/ require('./constants/LICENSE_ORIGINAL_GLOB_RECURSIVE'),
140140
)
141141
}
142142
const fastGlob = getFastGlob()
143143
return fastGlob.globStream(
144144
[
145145
recursive
146-
? /*@__PURE__*/ require('./constants/LICENSE_GLOB_RECURSIVE.js')
147-
: /*@__PURE__*/ require('./constants/LICENSE_GLOB.js'),
146+
? /*@__INLINE__*/ require('./constants/LICENSE_GLOB_RECURSIVE')
147+
: /*@__INLINE__*/ require('./constants/LICENSE_GLOB'),
148148
],
149149
{
150150
absolute: true,

registry/src/lib/packages/normalize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let _REGISTRY_SCOPE_DELIMITER: string | undefined
1414
function getRegistryScopeDelimiter(): string {
1515
if (_REGISTRY_SCOPE_DELIMITER === undefined) {
1616
_REGISTRY_SCOPE_DELIMITER =
17-
/*@__PURE__*/ require('../constants/REGISTRY_SCOPE_DELIMITER')
17+
/*@__INLINE__*/ require('../constants/REGISTRY_SCOPE_DELIMITER')
1818
}
1919
return _REGISTRY_SCOPE_DELIMITER!
2020
}
@@ -23,7 +23,7 @@ let _SOCKET_REGISTRY_SCOPE: string | undefined
2323
function getSocketRegistryScope(): string {
2424
if (_SOCKET_REGISTRY_SCOPE === undefined) {
2525
_SOCKET_REGISTRY_SCOPE =
26-
/*@__PURE__*/ require('../constants/SOCKET_REGISTRY_SCOPE')
26+
/*@__INLINE__*/ require('../constants/SOCKET_REGISTRY_SCOPE')
2727
}
2828
return _SOCKET_REGISTRY_SCOPE!
2929
}

0 commit comments

Comments
 (0)