build fails if you import keyframes directly
The problem
if you import { keyframe } from "@stylex/stylex" the build will fail because its apparently looking for the reference of stylex.keyframes()
How to reproduce
Steps to reproduce:
-
import { keyframe } from "@stylex/stylex" - create an animation
- try to run
next build
Expected behavior
vscode in particular autocompletes to import { stylex } from "@stylexjs/stylex" which will fail because we cannot call that var directly, and you will receive an unrelated error about css variables. So if you simply autocomplete props or create or keyframes etc you can benefit from the autocomplete with an import such as import { create, props, keyframes } from "@stylex/stylex". However the build will fail with the the keyframes import unless it is prefixed with the base path. props and create however work fine.
Environment (include versions). Did this work in previous versions?