This answer:
How can I use ES6 in webpack.config.js?
seems to imply a transpilation step.
Can ES6 be used natively? How?
For example I tried to convert the simple example here from require
to import
and receive the following error
(function (exports, require, module, __filename, __dirname) { import path from 'path'
^^^^
SyntaxError: Unexpected identifier