Skip to content

"sourceMaps" option in babelrc has no effect #2484

@andy-hanson

Description

@andy-hanson

Create an empty directory and do this:

echo '{"sourceMaps": true}' > .babelrc
mkdir src
echo 'export default 1' > src/index.js
babel src --out-dir lib

lib/index.js will be created but not lib/index.js.map.

Adding --source-maps to the command fixes the problem, but I want to do that through babelrc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions