Skip to content

Commit 82a7499

Browse files
committed
chore: remove closeBundle remnant
1 parent 2adc54a commit 82a7499

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ export function VitePluginDotenvx(options: VitePluginDotenvxOptions): Plugin {
200200
debug(`Exposed ${Object.keys(envToExpose).length} environment variables to the client`)
201201
}
202202
},
203-
204-
// Add a closeBundle hook to ensure cleanup happens
205-
async closeBundle() {
206-
debug('Bundle closing...')
207-
},
208203
}
209204
}
210205

test/index.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -470,14 +470,4 @@ describe('vite-plugin-dotenvx', () => {
470470
// Expect config.define to be undefined
471471
expect(config.define).toBeUndefined()
472472
})
473-
474-
// Skip the closeBundle test for now as it's causing issues
475-
it.skip('should call closeBundle hook without errors', () => {
476-
const plugin = VitePluginDotenvx({
477-
verbose: false,
478-
})
479-
480-
// Just verify the hook exists
481-
expect(typeof plugin.closeBundle).toBe('function')
482-
})
483473
})

0 commit comments

Comments
 (0)