@babel/preset-stage-2

    The gist of Stage 2 is:

    .babelrc

    Via CLI

    loose

    , defaults to false.

    Enable "loose" transformations for any plugins in this preset that allow them.

    Will use the native built-in instead of trying to polyfill behavior for any plugins that require one.

    decoratorsLegacy

    , defaults to false.

    Use the legacy (stage 1) decorators syntax and behavior.

    • Chapter "" in "Exploring ES2016 and ES2017" by Axel Rauschmayer