mirror of
https://github.com/withastro/astro.git
synced 2025-03-31 23:31:30 -05:00
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
01c801108f
commit
e21fef7da2
2 changed files with 6 additions and 1 deletions
5
.changeset/forty-eggs-raise.md
Normal file
5
.changeset/forty-eggs-raise.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/partytown': patch
|
||||
---
|
||||
|
||||
Adds the ability to override the `lib` option in `astro.config.mjs`
|
|
@ -27,8 +27,8 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
|
|||
'astro:config:setup': ({ config: _config, command, injectScript }) => {
|
||||
const lib = `${appendForwardSlash(_config.base)}~partytown/`;
|
||||
const partytownConfig = {
|
||||
...options?.config,
|
||||
lib,
|
||||
...options?.config,
|
||||
debug: options?.config?.debug ?? command === 'dev',
|
||||
};
|
||||
partytownSnippetHtml = partytownSnippet(partytownConfig);
|
||||
|
|
Loading…
Add table
Reference in a new issue