We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Index: examples/12_css/vite.config.ts IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/examples/12_css/vite.config.ts b/examples/12_css/vite.config.ts --- a/examples/12_css/vite.config.ts (revision ebd005ff88a3236ec02d21a466f0dd5f086aa507) +++ b/examples/12_css/vite.config.ts (date 1704119642367) @@ -1,10 +1,23 @@ import { defineConfig } from 'vite'; import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'; import styleX from 'vite-plugin-stylex'; - +let counter = 0; export default defineConfig({ ssr: { external: ['@stylexjs/stylex'], }, - plugins: [vanillaExtractPlugin({ emitCssInSsr: true }), styleX()], + plugins: [ + vanillaExtractPlugin({ emitCssInSsr: true }), + styleX(), + { + name: 'test-plugin', + transform(code) { + const c = `${code};${counter}` + console.log('c', c) + return { + code: c + } + } + } + ], });
/Users/himself65/Library/Caches/fnm_multishells/70636_1703645957566/bin/pnpm run dev > [email protected] dev /Users/himself65/Code/waku/examples/12_css > waku dev --with-ssr ready: Listening on http://localhost:3000/ The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. c import { jsxDEV } from "react/jsx-dev-runtime"; import { lazy } from "react"; import { defineEntries } from "waku/server"; const App = lazy(() => import("./components/App.js")); export default defineEntries( // renderEntries async (input) => { return { App: /* @__PURE__ */ jsxDEV(App, { name: input || "Waku" }, void 0, false, { fileName: "/Users/himself65/Code/waku/examples/12_css/src/entries.tsx", lineNumber: 10, columnNumber: 12 }, this) }; }, // getBuildConfig async () => [{ pathname: "/", entries: [{ input: "" }] }], // getSsrConfig async (pathname) => { switch (pathname) { case "/": return { input: "", unstable_render: ({ createElement, Slot }) => createElement(Slot, { id: "App" }) }; default: return null; } } ); ;0 c import { jsxDEV } from "react/jsx-dev-runtime"; import { lazy } from "react"; import { defineEntries } from "waku/server"; const App = lazy(() => import("./components/App.js")); export default defineEntries( // renderEntries async (input) => { return { App: /* @__PURE__ */ jsxDEV(App, { name: input || "Waku" }, void 0, false, { fileName: "/Users/himself65/Code/waku/examples/12_css/src/entries.tsx", lineNumber: 10, columnNumber: 12 }, this) }; }, // getBuildConfig async () => [{ pathname: "/", entries: [{ input: "" }] }], // getSsrConfig async (pathname) => { switch (pathname) { case "/": return { input: "", unstable_render: ({ createElement, Slot }) => createElement(Slot, { id: "App" }) }; default: return null; } } ); ;0;0 The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
You will see that there are ;0;0 instead of ;0 on the second output
;0;0
;0
The text was updated successfully, but these errors were encountered:
Upstream issue: vitejs/vite#15482
Sorry, something went wrong.
This will block #110, as commonjs plugin cannot work properly
Successfully merging a pull request may close this issue.
You will see that there are
;0;0
instead of;0
on the second outputThe text was updated successfully, but these errors were encountered: