Babylon, use Symbol without polyfill

I am using Babel 6 with a preset babel-preset-es2015.

When the code is translated, it includes references to Symbols, which are not supported in Node <= v0.12.0.

    throw _iteratorError;

ReferenceError: Symbol is not defined

When I do this, I see all the time that I need Babylon polyfill.

This is huge. I do not want it. I just want Babylon to put everything on a simple ES5.

What am I missing?

+4
source share

Source: https://habr.com/ru/post/1629733/


All Articles