I think you forgot to mention that vanilla JS doesn't support ES6 imports / exports without the use of a bundler like Babel or Webpack.
Yes, and if i am not mistaken, we can use it without babel by setting the type="module" in the script tag, right? ex: <script src="./file.js" type="module"></script> I think I need to dig deep into that, thanks for pointing out. Appreciated
<script src="./file.js" type="module"></script>
Is this really possible? I have been thinking of using this but couldn't figure out the right way.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you forgot to mention that vanilla JS doesn't support ES6 imports / exports without the use of a bundler like Babel or Webpack.
Yes, and if i am not mistaken, we can use it without babel by setting the type="module" in the script tag, right?
ex:
<script src="./file.js" type="module"></script>
I think I need to dig deep into that, thanks for pointing out.
Appreciated
Is this really possible?
I have been thinking of using this but couldn't figure out the right way.