Skip to content

Commit e21fef7

Browse files
fix(partytown): allow overriding the lib option (close #8760) (#8892)
Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent 01c8011 commit e21fef7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/forty-eggs-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/partytown': patch
3+
---
4+
5+
Adds the ability to override the `lib` option in `astro.config.mjs`

packages/integrations/partytown/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
2727
'astro:config:setup': ({ config: _config, command, injectScript }) => {
2828
const lib = `${appendForwardSlash(_config.base)}~partytown/`;
2929
const partytownConfig = {
30-
...options?.config,
3130
lib,
31+
...options?.config,
3232
debug: options?.config?.debug ?? command === 'dev',
3333
};
3434
partytownSnippetHtml = partytownSnippet(partytownConfig);

0 commit comments

Comments
 (0)