This change helps in module resolution across different package
managers, especially pnpm, which expects the imports to be from direct
dependencies.
During sx prop transform, pigment-css plugin adds -
import { sx } from '@pigment-css/react';
which would throw an error when using pnpm since @pigment-css/react was
not a direct dependency of the user's application.
This change helps in module resolution across different package managers, especially pnpm, which expects the imports to be from direct dependencies. During sx prop transform, pigment-css plugin adds -
which would throw an error when using pnpm since @pigment-css/react was not a direct dependency of the user's application.
Note: This is a breaking change.