Skip to content

[7.0] remove quotes option from babel-generator #5139

@hzoo

Description

@hzoo

(breaking change)

Going to start out by saying babel-generator is the package that takes an AST from the babel plugin/presets and returns a string (your file). As a compile file you probably shouldn't be caring that much about the options here. You're going to minify it in prod as well and it's not the source code where you would use eslint, prettier, etc.

Thus out of the options currently in generator - https://github.com/babel/babel/tree/master/packages/babel-generator#options, the quotes one doesn't make sense because the others have to do with code coverage, minification, or sourcemaps.

This also would fix #4803 (fixing the issue by removing the option)


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions