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

Add file extension when using absoluteRuntime #12827

Commits on Nov 13, 2021

  1. fix: add file extention when the absolute path to the runtime files a…

    …re used (babel#12824)
    
    the es module imports need the file extention (e.g. import "@babel/runtime/helpers/jsx.js", Or the filenames being listed in the package.json's subpath exports (e.g. "import "@babel/runtime/helpers/jsx" + pkg: "./helpers/jsx": "./helpers/jsx.js"). when the user passes a path via `absoluteRuntime` then the rendered require staemnts is not the module name + subpath which will be resolved via pkg.json but rather the absolute path to the file. for this case, add the file extention / index.js to prevent bundlers from raising a warning.
    mbehzad authored and nicolo-ribaudo committed Nov 13, 2021
    Copy the full SHA
    7903d3e View commit details
    Browse the repository at this point in the history
  2. Update deps

    nicolo-ribaudo committed Nov 13, 2021
    Copy the full SHA
    c408dc9 View commit details
    Browse the repository at this point in the history
  3. Fix imports resolution

    nicolo-ribaudo committed Nov 13, 2021
    Copy the full SHA
    4a31db7 View commit details
    Browse the repository at this point in the history
  4. Update fixtures (Windows)

    babel-bot committed Nov 13, 2021
    Copy the full SHA
    e67e44e View commit details
    Browse the repository at this point in the history