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

[Bug Report]: panic when handle css contains calc #2595

Closed
hardfist opened this issue Apr 3, 2023 · 2 comments · Fixed by #2600
Closed

[Bug Report]: panic when handle css contains calc #2595

hardfist opened this issue Apr 3, 2023 · 2 comments · Fixed by #2600
Assignees
Labels
team The issue/pr is created by the member of Rspack.

Comments

@hardfist
Copy link
Contributor

hardfist commented Apr 3, 2023

System Info

System:
OS: macOS 12.5.1
CPU: (10) arm64 Apple M1 Pro
Memory: 2.95 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.18.0 - ~/Library/Caches/fnm_multishells/71636_1680514176616/bin/node
npm: 8.19.2 - ~/Library/Caches/fnm_multishells/71636_1680514176616/bin/npm
Browsers:
Chrome: 111.0.5563.146
Firefox Developer Edition: 111.0
Safari: 15.6.1
npmPackages:
@rspack/cli: workspace:* => 0.1.4

Details

image

when i removes calc from css the panic disappear

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

Reproduce link

No response

Reproduce Steps

cd examples/cra && pnpm build
@IWANABETHATGUY
Copy link
Collaborator

introduced by swc-project/swc#6291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants