-
Description of the issue
How to reproduce the issue
Without Scripts Plugin:
Context and environment <script data-swup-ignore-script>
import Swup from 'swup';
import SwupHeadPlugin from '@swup/head-plugin';
import SwupA11yPlugin from '@swup/a11y-plugin';
import SwupScriptsPlugin from '@swup/scripts-plugin';
import SwupSlideTheme from '@swup/slide-theme';
const swup = new Swup({
plugins: [new SwupHeadPlugin(), new SwupA11yPlugin(), new SwupSlideTheme(), new SwupScriptsPlugin()]
});
</script> Before creating this issue...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Welcome! We've had a similar question recently, you should find some pointers there. When opening your StackBlitz link, I'm getting a
|
Beta Was this translation helpful? Give feedback.
Welcome! We've had a similar question recently, you should find some pointers there. When opening your StackBlitz link, I'm getting a
SyntaxError: Cannot use import statement outside a module
— that's because adding thedata-swup-ignore
attribute will make Astro skip bundling the script and treat it likeis:inline
. This is what the docs say: