DEV Community

Discussion on: JavaScript Modules

evankapantais profile image
Evan Kapantais

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.

kiranrajvjd profile image
Kiran Raj R

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.

thevinitgupta profile image
Vinit Gupta

Is this really possible?
I have been thinking of using this but couldn't figure out the right way.