I actually described the problem in the title. I watched a bunch of videos, I do everything there, I read the official documentation, as far as I could understand it naturally, I also read third-party sources. It does not work - even kill. There are no errors. I tried it differently - both babel-node and core used. And just cli. Everything works out, but for some reason on the official website, Babel translates ES6 to ES5, but I don’t want an infection. Help please advice.

On the screen, the result is the same in all cases https://imgur.com/a/f9JSCPI

One example

Noda, npm, and the editor, were already there, so I'll start by installing Babel. So .. Package Control => Babel plugin (+ JSX syntax). Installed. Default settings. Next npm init in the project folder. Config package.json { "name": "sublimeTest", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "build": "babel src -d dist --presets env", "watch": "babel src -d dist --presets env -w" }, "keywords": [], "author": "", "license": "ISC" } Installing Babel => npm install --D babel babel-cli babel-core babel-node babel-preset-env Set the same for every fireman globally.

Then I created the test.js file in the src folder, then in the npm run build console, and the test.js file is created in the dist folder, but without any changes. Although the guide that I took as an example, everything worked. How is that?

The second example In order not to write for a long time, the official guide https://babeljs.io/docs/en/babel-cli/ repeated the same result

He asked himself - he answered)) In general, I found what the problem was - a version conflict. Between 6 and 7. The structure of the 7th version of the module was rewritten. And the conflict is not accompanied by a log. No alarm at all. So, before you install \ update, do not forget to remove the previous version of Babel. Demolished put again Node, npm and new versions of modules. Now everything works.

  • Do you at least tell me exactly what and how you are doing, but nothing is clear. Who works out? Where does work? Specific commands and configs in the studio - andreymal
  • @andreymal, I understand everything. Please forgive so little information provided. But if I began to describe in detail all that I did, the topic would be created a couple of days. Now I will try in brief, although one of the examples described in the question is user310796
  • @andreymal, added a theme - user310796
  • Found what the problem was. See addition to the topic. - user310796 September

0