@qwik.dev/core 2.0.0-alpha.9 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/bindings/qwik.darwin-arm64.node +0 -0
  2. package/bindings/qwik.darwin-x64.node +0 -0
  3. package/bindings/qwik.linux-x64-gnu.node +0 -0
  4. package/bindings/qwik.wasm.cjs +27 -27
  5. package/bindings/qwik.wasm.mjs +27 -27
  6. package/bindings/qwik.win32-x64-msvc.node +0 -0
  7. package/bindings/qwik_wasm_bg.wasm +0 -0
  8. package/dist/build/index.cjs +3 -3
  9. package/dist/build/index.d.ts +22 -22
  10. package/dist/build/package.json +1 -1
  11. package/dist/cli.cjs +6 -6
  12. package/dist/core-internal.d.ts +4447 -4153
  13. package/dist/core.cjs +5698 -5353
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.min.mjs +1 -1
  16. package/dist/core.mjs +5691 -5350
  17. package/dist/core.mjs.map +1 -1
  18. package/dist/core.prod.cjs +2811 -2633
  19. package/dist/core.prod.mjs +3193 -3039
  20. package/dist/insights/index.qwik.cjs +1 -4142
  21. package/dist/insights/index.qwik.mjs +63 -4133
  22. package/dist/insights/vite/index.cjs +1 -82
  23. package/dist/insights/vite/index.mjs +65 -37
  24. package/dist/insights/vite.d.ts +22 -0
  25. package/dist/{insights/insights.d.ts → insights.d.ts} +33 -22
  26. package/dist/loader/index.cjs +2 -2
  27. package/dist/loader/index.mjs +2 -2
  28. package/dist/loader/package.json +1 -1
  29. package/dist/optimizer.cjs +554 -355
  30. package/dist/optimizer.d.ts +779 -707
  31. package/dist/optimizer.mjs +552 -399
  32. package/dist/preloader.cjs +269 -0
  33. package/dist/preloader.mjs +198 -0
  34. package/dist/qwikloader.debug.js +242 -222
  35. package/dist/qwikloader.js +1 -3
  36. package/dist/server.cjs +671 -570
  37. package/dist/server.d.ts +504 -402
  38. package/dist/server.mjs +642 -545
  39. package/dist/starters/adapters/aws-lambda/serverless.yml +15 -0
  40. package/dist/starters/adapters/aws-lambda/src/entry_aws-lambda.tsx +0 -2
  41. package/dist/starters/adapters/azure-swa/public/staticwebapp.config.json +7 -0
  42. package/dist/starters/adapters/azure-swa/src/entry.azure-swa.tsx +1 -2
  43. package/dist/starters/adapters/bun/src/entry.bun.ts +3 -2
  44. package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +1 -3
  45. package/dist/starters/adapters/cloudflare-pages/public/_headers +2 -0
  46. package/dist/starters/adapters/cloudflare-pages/src/entry.cloudflare-pages.tsx +1 -2
  47. package/dist/starters/adapters/deno/src/entry.deno.ts +3 -2
  48. package/dist/starters/adapters/express/src/entry.express.tsx +5 -2
  49. package/dist/starters/adapters/fastify/src/entry.fastify.tsx +2 -1
  50. package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +9 -1
  51. package/dist/starters/adapters/firebase/firebase.json +12 -1
  52. package/dist/starters/adapters/firebase/functions/index.js +2 -3
  53. package/dist/starters/adapters/firebase/src/entry-firebase.tsx +1 -2
  54. package/dist/starters/adapters/netlify-edge/public/_headers +2 -0
  55. package/dist/starters/adapters/netlify-edge/src/entry.netlify-edge.tsx +1 -2
  56. package/dist/starters/adapters/node-server/src/entry.node-server.tsx +3 -2
  57. package/dist/starters/adapters/static/README.md +4 -0
  58. package/dist/starters/adapters/vercel-edge/src/entry.vercel-edge.tsx +1 -2
  59. package/dist/starters/adapters/vercel-edge/vercel.json +1 -1
  60. package/dist/starters/features/bootstrap/src/routes/bootstrap/layout.tsx +0 -11
  61. package/dist/starters/features/localize/src/entry.ssr.tsx +0 -2
  62. package/dist/starters/features/localize/src/routes/[locale]/i18n-utils.ts +1 -1
  63. package/dist/starters/features/partytown/package.json +4 -4
  64. package/dist/starters/features/partytown/src/components/partytown/partytown.tsx +2 -2
  65. package/dist/starters/features/postcss/postcss.config.js +1 -1
  66. package/dist/starters/features/service-worker/package.json +13 -0
  67. package/dist/starters/features/service-worker/src/routes/service-worker.ts +14 -0
  68. package/dist/starters/features/styled-vanilla-extract/package.json +2 -1
  69. package/dist/starters/features/tailwind/package.json +2 -1
  70. package/dist/starters/features/tailwind/src/global.css +1 -1
  71. package/dist/starters/features/tailwind-v3/tailwind.config.js +2 -2
  72. package/dist/testing/index.cjs +8007 -7753
  73. package/dist/testing/index.d.ts +141 -141
  74. package/dist/testing/index.mjs +7848 -7600
  75. package/dist/testing/package.json +1 -1
  76. package/package.json +19 -11
  77. package/public.d.ts +4 -0
  78. package/server.d.ts +1 -0
  79. package/dist/insights/index.d.ts +0 -1
  80. package/dist/insights/vite/index.d.ts +0 -1
  81. package/dist/insights/vite/insights-plugin.d.ts +0 -10
  82. package/dist/prefetch/index.cjs +0 -4
  83. package/dist/prefetch/index.d.ts +0 -2
  84. package/dist/prefetch/index.mjs +0 -3
  85. package/dist/prefetch/package.json +0 -8
  86. package/dist/qwik-prefetch.debug.js +0 -244
  87. package/dist/qwik-prefetch.js +0 -1
@@ -18,6 +18,21 @@ functions:
18
18
  custom:
19
19
  serverless-offline:
20
20
  httpPort: 4000
21
+ serverless-http:
22
+ # Make sure serverless-http serves files correctly
23
+ binary:
24
+ contentTypes:
25
+ - "application/javascript"
26
+ - "text/javascript"
27
+ - "application/json"
28
+ - "text/html"
29
+ - "text/css"
30
+ - "image/*"
31
+ - "font/*"
32
+ # the js files under build have hash names and are immutable
33
+ cacheControl:
34
+ - pattern: "build/**/*.js"
35
+ value: "public, max-age=31536000, immutable"
21
36
 
22
37
  package:
23
38
  excludeDevDependencies: true
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/aws/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -24,7 +23,6 @@ declare global {
24
23
  export const { handle } = createQwikRouter({
25
24
  render,
26
25
  qwikRouterConfig,
27
- manifest,
28
26
  });
29
27
 
30
28
  export const qwikApp = serverless({ handle }, { binary: true });
@@ -19,5 +19,12 @@
19
19
  },
20
20
  "platform": {
21
21
  "apiRuntime": "node:18"
22
+ },
23
+ "responseOverrides": {
24
+ "build/**/*.js": {
25
+ "headers": {
26
+ "Cache-Control": "public, max-age=31536000, immutable"
27
+ }
28
+ }
22
29
  }
23
30
  }
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/azure-swa/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -19,4 +18,4 @@ declare global {
19
18
  interface QwikRouterPlatform extends PlatformAzure {}
20
19
  }
21
20
 
22
- export default createQwikRouter({ render, qwikRouterConfig, manifest });
21
+ export default createQwikRouter({ render, qwikRouterConfig });
@@ -8,7 +8,6 @@
8
8
  * - https://bun.sh/docs/api/http
9
9
  *
10
10
  */
11
- import { manifest } from "@qwik-client-manifest";
12
11
  import qwikRouterConfig from "@qwik-router-config";
13
12
  import { createQwikRouter } from "@qwik.dev/router/middleware/bun";
14
13
  import render from "./entry.ssr";
@@ -17,7 +16,9 @@ import render from "./entry.ssr";
17
16
  const { router, notFound, staticFile } = createQwikRouter({
18
17
  render,
19
18
  qwikRouterConfig,
20
- manifest,
19
+ static: {
20
+ cacheControl: "public, max-age=31536000, immutable",
21
+ },
21
22
  });
22
23
 
23
24
  // Allow for dynamic port
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/gcp-cloud-run/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -52,9 +51,8 @@ const DEFAULT_HEADERS = {
52
51
  const { router, notFound, staticFile } = createQwikRouter({
53
52
  render,
54
53
  qwikRouterConfig,
55
- manifest,
56
54
  static: {
57
- cacheControl: "public, max-age=31557600",
55
+ cacheControl: "public, max-age=31536000, immutable",
58
56
  },
59
57
  getOrigin(req) {
60
58
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
@@ -7,3 +7,5 @@
7
7
 
8
8
  /build/*
9
9
  Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
10
+ /assets/*
11
+ Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/cloudflare-pages/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -19,6 +18,6 @@ declare global {
19
18
  interface QwikRouterPlatform extends PlatformCloudflarePages {}
20
19
  }
21
20
 
22
- const fetch = createQwikRouter({ render, qwikRouterConfig, manifest });
21
+ const fetch = createQwikRouter({ render, qwikRouterConfig });
23
22
 
24
23
  export { fetch };
@@ -8,7 +8,6 @@
8
8
  * - https://docs.deno.com/runtime/tutorials/http_server
9
9
  *
10
10
  */
11
- import { manifest } from "@qwik-client-manifest";
12
11
  import qwikRouterConfig from "@qwik-router-config";
13
12
  import { createQwikRouter } from "@qwik.dev/router/middleware/deno";
14
13
  import render from "./entry.ssr";
@@ -17,7 +16,9 @@ import render from "./entry.ssr";
17
16
  const { router, notFound, staticFile } = createQwikRouter({
18
17
  render,
19
18
  qwikRouterConfig,
20
- manifest,
19
+ static: {
20
+ cacheControl: "public, max-age=31536000, immutable",
21
+ },
21
22
  });
22
23
 
23
24
  // Allow for dynamic port
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/node/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -26,6 +25,7 @@ declare global {
26
25
  // Directories where the static assets are located
27
26
  const distDir = join(fileURLToPath(import.meta.url), "..", "..", "dist");
28
27
  const buildDir = join(distDir, "build");
28
+ const assetsDir = join(distDir, "assets");
29
29
 
30
30
  // Allow for dynamic port
31
31
  const PORT = process.env.PORT ?? 3000;
@@ -34,7 +34,6 @@ const PORT = process.env.PORT ?? 3000;
34
34
  const { router, notFound } = createQwikRouter({
35
35
  render,
36
36
  qwikRouterConfig,
37
- manifest,
38
37
  // getOrigin(req) {
39
38
  // // If deploying under a proxy, you may need to build the origin from the request headers
40
39
  // // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
@@ -55,6 +54,10 @@ const app = express();
55
54
  // Static asset handlers
56
55
  // https://expressjs.com/en/starter/static-files.html
57
56
  app.use(`/build`, express.static(buildDir, { immutable: true, maxAge: "1y" }));
57
+ app.use(
58
+ `/assets`,
59
+ express.static(assetsDir, { immutable: true, maxAge: "1y" }),
60
+ );
58
61
  app.use(express.static(distDir, { redirect: false }));
59
62
 
60
63
  // Use Qwik Router's page and endpoint request handler
@@ -21,6 +21,7 @@ declare global {
21
21
  // Directories where the static assets are located
22
22
  const distDir = join(fileURLToPath(import.meta.url), "..", "..", "dist");
23
23
  const buildDir = join(distDir, "build");
24
+ const assetsDir = join(distDir, "assets");
24
25
 
25
26
  // Allow for dynamic port and host
26
27
  const PORT = parseInt(process.env.PORT ?? "3000");
@@ -39,7 +40,7 @@ const start = async () => {
39
40
  // await fastify.register(import('@fastify/compress'))
40
41
 
41
42
  // Handle Qwik Router using a plugin
42
- await fastify.register(FastifyQwik, { distDir, buildDir });
43
+ await fastify.register(FastifyQwik, { distDir, buildDir, assetsDir });
43
44
 
44
45
  // Start the fastify server
45
46
  await fastify.listen({ port: PORT, host: HOST });
@@ -9,6 +9,7 @@ import render from "../entry.ssr";
9
9
  export interface FastifyQwikOptions {
10
10
  distDir: string;
11
11
  buildDir: string;
12
+ assetsDir: string;
12
13
  }
13
14
 
14
15
  const { router, notFound } = createQwikRouter({ render, qwikRouterConfig });
@@ -17,7 +18,7 @@ const qwikPlugin: FastifyPluginAsync<FastifyQwikOptions> = async (
17
18
  fastify,
18
19
  options,
19
20
  ) => {
20
- const { buildDir, distDir } = options;
21
+ const { buildDir, distDir, assetsDir } = options;
21
22
 
22
23
  fastify.register(fastifyStatic, {
23
24
  root: buildDir,
@@ -27,6 +28,13 @@ const qwikPlugin: FastifyPluginAsync<FastifyQwikOptions> = async (
27
28
  decorateReply: false,
28
29
  });
29
30
 
31
+ fastify.register(fastifyStatic, {
32
+ root: assetsDir,
33
+ prefix: "/assets",
34
+ immutable: true,
35
+ maxAge: "1y",
36
+ });
37
+
30
38
  fastify.register(fastifyStatic, {
31
39
  root: distDir,
32
40
  redirect: false,
@@ -19,6 +19,17 @@
19
19
  "function": "app"
20
20
  }
21
21
  ],
22
- "ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
22
+ "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
23
+ "headers": [
24
+ {
25
+ "source": "build/**/*.js",
26
+ "headers": [
27
+ {
28
+ "key": "Cache-Control",
29
+ "value": "public, max-age=31536000, s-maxage=31536000, immutable"
30
+ }
31
+ ]
32
+ }
33
+ ]
23
34
  }
24
35
  }
@@ -1,5 +1,4 @@
1
1
  import { https } from "firebase-functions";
2
- import qwikApp from './server/entry-firebase.mjs';
2
+ import qwikApp from "./server/entry-firebase.mjs";
3
3
 
4
-
5
- export const app = https.onRequest(qwikApp)
4
+ export const app = https.onRequest(qwikApp);
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/firebase/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -19,4 +18,4 @@ declare global {
19
18
  interface QwikRouterPlatform extends PlatformFirebase {}
20
19
  }
21
20
 
22
- export default createQwikRouter({ render, qwikRouterConfig, manifest });
21
+ export default createQwikRouter({ render, qwikRouterConfig });
@@ -1,2 +1,4 @@
1
+ /assets/*
2
+ Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
1
3
  /build/*
2
4
  Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/netlify-edge/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -19,4 +18,4 @@ declare global {
19
18
  interface QwikRouterPlatform extends PlatformNetlify {}
20
19
  }
21
20
 
22
- export default createQwikRouter({ render, qwikRouterConfig, manifest });
21
+ export default createQwikRouter({ render, qwikRouterConfig });
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/node/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import { createQwikRouter } from "@qwik.dev/router/middleware/node";
13
12
  import { createServer } from "node:http";
@@ -20,7 +19,9 @@ const PORT = process.env.PORT ?? 3004;
20
19
  const { router, notFound, staticFile } = createQwikRouter({
21
20
  render,
22
21
  qwikRouterConfig,
23
- manifest,
22
+ static: {
23
+ cacheControl: "public, max-age=31536000, immutable",
24
+ },
24
25
  });
25
26
 
26
27
  const server = createServer();
@@ -1,5 +1,9 @@
1
1
  ## Static Site Generator (Node.js)
2
2
 
3
+ Be sure to configure your server to serve very long cache headers for the `build/**/*.js` files.
4
+
5
+ Typically you'd set the `Cache-Control` header for those files to `public, max-age=31536000, immutable`.
6
+
3
7
  ```shell
4
8
  npm run build.server
5
9
  ```
@@ -7,7 +7,6 @@
7
7
  * - https://qwik.dev/docs/deployments/vercel-edge/
8
8
  *
9
9
  */
10
- import { manifest } from "@qwik-client-manifest";
11
10
  import qwikRouterConfig from "@qwik-router-config";
12
11
  import {
13
12
  createQwikRouter,
@@ -19,4 +18,4 @@ declare global {
19
18
  interface QwikRouterPlatform extends PlatformVercel {}
20
19
  }
21
20
 
22
- export default createQwikRouter({ render, qwikRouterConfig, manifest });
21
+ export default createQwikRouter({ render, qwikRouterConfig });
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  {
13
- "source": "/build/(.*)",
13
+ "source": "/(assets|build)/.*",
14
14
  "headers": [
15
15
  {
16
16
  "key": "Cache-Control",
@@ -6,17 +6,6 @@ import { Navbar } from "~/components/bootstrap";
6
6
 
7
7
  import bootstrapStyles from "../../../node_modules/bootstrap/dist/css/bootstrap.min.css?inline";
8
8
 
9
- export const onGet: RequestHandler = async ({ cacheControl }) => {
10
- // Control caching for this request for best performance and to reduce hosting costs:
11
- // https://qwik.dev/docs/caching/
12
- cacheControl({
13
- // Always serve a cached response by default, up to a week stale
14
- staleWhileRevalidate: 60 * 60 * 24 * 7,
15
- // Max once every 5 seconds, revalidate on the server to get a fresh version of this page
16
- maxAge: 5,
17
- });
18
- };
19
-
20
9
  export default component$(() => {
21
10
  useStyles$(bootstrapStyles);
22
11
  return (
@@ -10,7 +10,6 @@
10
10
  * - npm run build
11
11
  *
12
12
  */
13
- import { manifest } from "@qwik-client-manifest";
14
13
  import {
15
14
  renderToStream,
16
15
  type RenderToStreamOptions,
@@ -20,7 +19,6 @@ import { extractBase } from "./routes/[locale]/i18n-utils";
20
19
 
21
20
  export default function (opts: RenderToStreamOptions) {
22
21
  return renderToStream(<Root />, {
23
- manifest,
24
22
  ...opts,
25
23
  base: extractBase, // determine the base URL for the client code
26
24
  // Use container attributes to set attributes on the html tag.
@@ -83,7 +83,7 @@ export function extractBase({ serverData }: RenderOptions): string {
83
83
  export function useI18n() {
84
84
  if (import.meta.env.DEV) {
85
85
  // During development only, load all translations in memory when the app starts on the client.
86
- // eslint-disable-next-line
86
+
87
87
  useOnDocument("qinit", $(initTranslations));
88
88
  }
89
89
  }
@@ -9,7 +9,7 @@
9
9
  "namedImports": [
10
10
  "partytownVite"
11
11
  ],
12
- "importPath": "@builder.io/partytown/utils"
12
+ "importPath": "@qwik.dev/partytown/utils"
13
13
  },
14
14
  {
15
15
  "namedImports": [
@@ -23,7 +23,7 @@
23
23
  ]
24
24
  },
25
25
  "docs": [
26
- "https://partytown.builder.io/",
26
+ "https://partytown.qwik.dev/",
27
27
  "https://qwik.dev/integrations/partytown/"
28
28
  ],
29
29
  "nextSteps": {
@@ -31,11 +31,11 @@
31
31
  " Please add the <QwikPartytown/> component",
32
32
  " to your root.tsx file.",
33
33
  " Have a look at the docs for more info: ",
34
- " https://partytown.builder.io/configuration"
34
+ " https://partytown.qwik.dev/configuration"
35
35
  ]
36
36
  }
37
37
  },
38
38
  "devDependencies": {
39
- "@builder.io/partytown": "^0.8.1"
39
+ "@qwik.dev/partytown": "^0.11.1"
40
40
  }
41
41
  }
@@ -1,5 +1,5 @@
1
- import type { PartytownConfig } from "@builder.io/partytown/integration";
2
- import { partytownSnippet } from "@builder.io/partytown/integration";
1
+ import type { PartytownConfig } from "@qwik.dev/partytown/integration";
2
+ import { partytownSnippet } from "@qwik.dev/partytown/integration";
3
3
 
4
4
  /**
5
5
  * Props for `<QwikPartytown/>`, which extends the Partytown Config.
@@ -8,4 +8,4 @@ module.exports = {
8
8
  },
9
9
  },
10
10
  },
11
- }
11
+ };
@@ -0,0 +1,13 @@
1
+ {
2
+ "description": "Add a service worker to your app",
3
+ "__qwik__": {
4
+ "displayName": "Feature: Service Worker",
5
+ "priority": 10,
6
+ "docs": [],
7
+ "nextSteps": {
8
+ "lines": [
9
+ "Now, make sure that you have `<ServiceWorkerRegister />` in your `src/root.tsx`. You can import it from `@qwik.dev/router`."
10
+ ]
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * WHAT IS THIS FILE?
3
+ *
4
+ * Any file called "service-worker" is automatically bundled and registered with Qwik Router, as long as you add `<RegisterServiceWorker />` in your `root.tsx`.
5
+ *
6
+ * Here you register the events that your service worker will handle.
7
+ *
8
+ * MDN has documentation at https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
9
+ */
10
+ export declare const self: ServiceWorkerGlobalScope;
11
+
12
+ addEventListener("install", () => self.skipWaiting());
13
+
14
+ addEventListener("activate", () => self.clients.claim());
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@vanilla-extract/css": "^1.12.0",
27
- "styled-vanilla-extract": "^0.5.4"
27
+ "styled-vanilla-extract": "^0.5.4",
28
+ "@vanilla-extract/vite-plugin": "^5.0.1"
28
29
  }
29
30
  }
@@ -23,5 +23,6 @@
23
23
  "prettier-plugin-tailwindcss": "^0.6.11",
24
24
  "tailwindcss": "^4.0.0",
25
25
  "@tailwindcss/vite": "^4.0.0"
26
- }
26
+ },
27
+ "type": "module"
27
28
  }
@@ -1 +1 @@
1
- @import "tailwindcss";
1
+ @import "tailwindcss";
@@ -1,8 +1,8 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  export default {
3
- content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
3
+ content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
4
4
  theme: {
5
5
  extend: {},
6
6
  },
7
7
  plugins: [],
8
- };
8
+ };