L
L
larisa_ptk2018-03-18 00:08:01
JavaScript
larisa_ptk, 2018-03-18 00:08:01

Do I need to use CommonJS or AMD in Webpack 3 now?

Or is it better to use ES6 modules?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2018-03-18
@k12th

Not only unnecessary, but harmful. Firstly, imports-exports are already supported by browsers and it's time to get used to good practices and a bright future :) Secondly, only es6 modules allow webpack to do tree-shaking.
Obviously you have some doubts. If you state them, the community can dispel them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question