Skip to content

babel presets not being used during postinstall #25

@bdefore

Description

@bdefore

I've encountered an issue where a library I've made that relies on Webpack and the Babel "react" preset, and relies on postinstall-build to build in dependent projects, fails when built there. Here's a trimmed down version that reproduces the issue:

https://github.com/bdefore/postinstall-build-error-dependent
https://github.com/bdefore/postinstall-build-error-library

The library project can successfully run npm run build:react but when it does so in the postinstall step of the dependent project, it fails to parse JSX.

Here's a gist of the terminal output of the failure: https://gist.github.com/bdefore/cb4269649b7e3e4e42dcf1f52d573f9a

The full npm-debug.log is checked in here: https://raw.githubusercontent.com/bdefore/postinstall-build-error-dependent/master/npm-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions