Skip to content

Migrate runtime and build Babel tooling to Babel 8#12

Open
nsano-rururu with Copilot wants to merge 3 commits into
masterfrom
copilot/babel-7-to-8
Open

Migrate runtime and build Babel tooling to Babel 8#12
nsano-rururu with Copilot wants to merge 3 commits into
masterfrom
copilot/babel-7-to-8

Conversation

Copilot AI commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

This updates the server from Babel 7 to Babel 8 and aligns the runtime bootstrap with Babel 8’s module/export behavior. The scope is intentionally limited to Babel package upgrades and the entrypoint change required to preserve @babel/register startup.

  • Dependency upgrade

    • Bump the Babel toolchain to v8 in package.json:
      • @babel/cli
      • @babel/core
      • @babel/preset-env
      • @babel/register
  • Runtime bootstrap compatibility

    • Update the CommonJS entrypoint to use Babel 8’s default export from @babel/register
    • Configure the register hook to ignore node_modules explicitly, matching Babel 8 expectations
  • Resulting entrypoint change

    require('@babel/register').default({
      ignore: [/node_modules/],
    });
    require('src');

Copilot AI changed the title [WIP] Upgrade Babel from version 7 to 8 Migrate runtime and build Babel tooling to Babel 8 Jun 20, 2026
Copilot AI requested a review from nsano-rururu June 20, 2026 14:04
@nsano-rururu nsano-rururu marked this pull request as ready for review June 20, 2026 14:04
Copilot AI review requested due to automatic review settings June 20, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project’s Babel toolchain from Babel 7 to Babel 8 and updates the runtime bootstrap so the server can continue to transpile src/ at startup via @babel/register.

Changes:

  • Bumped core Babel dependencies (@babel/core, @babel/cli, @babel/preset-env, @babel/register) to v8.
  • Updated the CommonJS entrypoint to invoke @babel/register’s default export and explicitly ignore node_modules.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Upgrades Babel dependencies to v8 versions.
index.js Adjusts runtime Babel register bootstrap to match Babel 8 export behavior and adds an explicit ignore for node_modules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.js Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants