Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Babel polyfill injection in dev #27691

Merged
merged 1 commit into from
Nov 6, 2023

Commits on Nov 4, 2023

  1. Disable Babel polyfills in dev

    In mastodon#27333 I added useBuiltIns: "usage", which causes Babel to inject polyfills into those files. The polyfills are injected using ESM import symtax, which disables the handling of export. (CommonJS exports).
    
    This causes the build in dev to fail, because in dev Babel does not convert the exports to CJS (not sure why).
    
    I tried various things but I am unsure of why this happens. A simple fix is to no longer have Babel inject polyfills in dev, which was the previous behaviour.
    renchap committed Nov 4, 2023
    Configuration menu
    Copy the full SHA
    6311b65 View commit details
    Browse the repository at this point in the history