Anber / wyw-in-js

MIT License
243 stars 16 forks source link

No support of Vite's `import.meta.env` #90

Open Malien opened 5 months ago

Malien commented 5 months ago

Given a simple vite starter project of:

import { css } from "@linaria/core";

console.log(import.meta.env.MODE);

document.body.className = css`
   content: ${import.meta.env.MODE}
`;

A build-time evaluation of the module yields undefined from import.meta.env.*. This breaks certain flows

kiprop-dave commented 1 month ago

Is there any progress on this?