We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c8011 commit e21fef7Copy full SHA for e21fef7
.changeset/forty-eggs-raise.md
@@ -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
@@ -27,8 +27,8 @@ export default function createPlugin(options?: PartytownOptions): AstroIntegrati
27
'astro:config:setup': ({ config: _config, command, injectScript }) => {
28
const lib = `${appendForwardSlash(_config.base)}~partytown/`;
29
const partytownConfig = {
30
- ...options?.config,
31
lib,
+ ...options?.config,
32
debug: options?.config?.debug ?? command === 'dev',
33
};
34
partytownSnippetHtml = partytownSnippet(partytownConfig);
0 commit comments