aos
aos copied to clipboard
Includes dependencies in ESM build
Related Issue
#422
Your solution
Removed external option for Rollup and added resolve and commonjs plugins.
How Has This Been Tested?
Used the new ESM bundle on the browser as a module, and AOS is working. As it does not change any source code, it should work fine as is.
<script type="module">
import AOS from "./node_modules/aos/dist/aos.esm.js";
AOS.init({});
</script>
Is this project dead? Would need that too. Want to use AOS as native ESM module. Therefore deps should be included in the ESM version of AOS.
Yeah I need this too. I'm using this library with Nuxt 3 and keep having issues with imports. egidiusmengelberg/nuxt-aos