|
|
|
|
|
by Touche
3686 days ago
|
|
Right, but the argument for being spec compliant is that some day you can simply stop using the transpiler and your code should not break. So, the correct spec-compliant thing to do would be for the ES2015 preset not to touch import/export and let the bundler handle that (hopefully correct). Compiling to CommonJS, which doesn't care about `.js` or not, is the wrong choice. |
|