We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have components organised as follows:
components/ Button/ Button.island.js Button.jsx
In my Vite entry file, I'm using AsyncAlpine.alias('components/[name]/[name].island.js').
AsyncAlpine.alias('components/[name]/[name].island.js')
As only the first instance of [name] is replaced, I get a 404 on http://localhost:5173/components/Button/[name].island.js.
[name]
If I remove the second instance of [name] and rename Button.island.js to island.js, everything works as expected.
Button.island.js
island.js
Would you be happy to enable replacement of multiple instances of [name] in AsyncAlpine.alias()?
AsyncAlpine.alias()
The text was updated successfully, but these errors were encountered:
Yep absolutely, I'd definitely be happy to do that. That's something I missed due to using .replace instead of .replaceAll.
.replace
.replaceAll
I can update next week, or you're welcome to make a PR with that change.
Sorry, something went wrong.
Excellent. Have created a PR (#34). Thanks :)
Successfully merging a pull request may close this issue.
I have components organised as follows:
In my Vite entry file, I'm using
AsyncAlpine.alias('components/[name]/[name].island.js')
.As only the first instance of
[name]
is replaced, I get a 404 on http://localhost:5173/components/Button/[name].island.js.If I remove the second instance of
[name]
and renameButton.island.js
toisland.js
, everything works as expected.Would you be happy to enable replacement of multiple instances of
[name]
inAsyncAlpine.alias()
?The text was updated successfully, but these errors were encountered: