aos icon indicating copy to clipboard operation
aos copied to clipboard

Includes dependencies in ESM build

Open sntran opened this issue 7 years ago • 2 comments

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>

sntran avatar Nov 14 '18 15:11 sntran

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.

bavarianbytes avatar Aug 27 '21 08:08 bavarianbytes

Yeah I need this too. I'm using this library with Nuxt 3 and keep having issues with imports. egidiusmengelberg/nuxt-aos

egidiusmengelberg avatar Oct 28 '23 10:10 egidiusmengelberg