• Is there a way to enable autoptimize for script type module JS files, and those JS files which are being “imported” in that module JS?

    For example, I have exported a function from dropdown.js. Now if I add
    import dropdown from ‘./dropdown.js’ in my index.js and add index.js file in <script type=”module” src=”index.js”></script>

    Autoptimize does not optimize my index.js file.
    I believe it’s because its type is module and autoptimize currently works on “text/javascript” type

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    that currently indeed does not work and even if index.js would be optimized AO would not act on the import I’m afraid. not saying I’m not interested, but this feels like pandora’s box and I’m afraid to open it ??

Viewing 1 replies (of 1 total)
  • The topic ‘script type module’ is closed to new replies.