Skip to content

[BABEL] Note: The code generator has deoptimised the styling #13303

@kaiyoma

Description

@kaiyoma

Describe the bug

While migrating a webpack app to Vite, I'm getting this output:

  VITE v4.3.8  ready in 1032 ms

  ➜  Local:   http://127.0.0.1:3001/
  ➜  Network: use --host to expose
  ➜  press h to show help
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\kgetz\Work\event-viewer\lib\geiger-studios\dist\index.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\kgetz\Work\event-viewer\packages\cv-components\dist\index.js as it exceeds the max of 500KB.

I tried searching for other GH issues and they all seem to reference plugin-legacy, which I'm not using. What am I supposed to do here to fix this? The output doesn't offer any suggestions or a path forward.

Reproduction

N/A

Steps to reproduce

No response

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 5.35 GB / 15.71 GB
  Binaries:
    Node: 16.19.1 - C:\Program Files\Node.js\node.EXE
    npm: 9.6.2 - C:\Program Files\Node.js\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1702.0), Chromium (113.0.1774.50)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @vitejs/plugin-react: 4.0.0 => 4.0.0
    vite: 4.3.8 => 4.3.8

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions