Accudio / async-alpine

Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components!
https://async-alpine.dev
Apache License 2.0
152 stars 12 forks source link

Enable multiple [name] replacements in AsyncAlpine.alias(). Fixes #32 #34

Closed scruffymongrel closed 9 months ago

scruffymongrel commented 11 months ago

Replace replace() in _handleAlias() with replaceAll().

Accudio commented 10 months ago

Great thank you! I'm leaving this open until I've had time to look into and fix #33, and include them both in the next version.

Despite the fact it would not comply with semver, I'm planning that version to be 1.1.1. This is in theory a breaking change even if it's breaking unintended functionality, but I think the likelihood of someone relying on being able to request /component-name/[name].js is super low.