Skip to content

Commit e06609a

Browse files
refactor: normalize export pattern for nodeRuntimeImportCache
Use direct export declaration instead of separate export statement to match the pattern used by all other exports in the file. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6dadff8 commit e06609a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/node/src/runtimePlugin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ type WebpackRequire = {
3939
declare const __webpack_require__: WebpackRequire;
4040
declare const __non_webpack_require__: (id: string) => any;
4141

42-
const nodeRuntimeImportCache = new Map<string, Promise<any>>();
43-
44-
// Export cache for testing
45-
export { nodeRuntimeImportCache };
42+
export const nodeRuntimeImportCache = new Map<string, Promise<any>>();
4643

4744
export function importNodeModule<T>(name: string): Promise<T> {
4845
if (!name) {

0 commit comments

Comments
 (0)