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

Webpack tries to interpret dynamic `import` #2

Closed Accudio closed 2 years ago

Accudio commented 2 years ago

Requires /* webpackIgnore: true */ within the import function for Webpack to avoid the transformation.

const module = await import(/* webpackIgnore: true */ this.src);
Accudio commented 2 years ago

Fixed in version 0.2.0