script type module
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘script type module’ is closed to new replies.