diff --git a/.changeset/three-humans-promise.md b/.changeset/three-humans-promise.md new file mode 100644 index 000000000..1d1e76756 --- /dev/null +++ b/.changeset/three-humans-promise.md @@ -0,0 +1,5 @@ +--- +'@astrojs/tailwind': patch +--- + +Update README to reference a `.cjs` config file diff --git a/examples/basics/package.json b/examples/basics/package.json index d1a965d98..5e9de1787 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -1,5 +1,6 @@ { "name": "@example/basics", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/blog/package.json b/examples/blog/package.json index c7996fdc9..33dcf7729 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -1,5 +1,6 @@ { "name": "@example/blog", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/component/demo/astro.config.mjs b/examples/component/demo/astro.config.mjs new file mode 100644 index 000000000..2d73a2807 --- /dev/null +++ b/examples/component/demo/astro.config.mjs @@ -0,0 +1,10 @@ +import { defineConfig } from 'astro/config'; + +// https://astro.build/config +export default defineConfig({ + vite: { + ssr: { + noExternal: ['@example/my-component'], + }, + }, +}); diff --git a/examples/docs/package.json b/examples/docs/package.json index 9c43721ce..e7ff43604 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -1,5 +1,6 @@ { "name": "@example/docs", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-alpine/package.json b/examples/framework-alpine/package.json index 4d410c7ab..79b43df7a 100644 --- a/examples/framework-alpine/package.json +++ b/examples/framework-alpine/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-alpine", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index a1137897d..25519ada2 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-lit", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 5b486a746..50c1d4e10 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-multiple", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 3c3617dee..64c04c402 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-preact", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index d57aa2a3a..7759a64e0 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-react", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index ea28a6d2e..baa5090dd 100644 --- a/examples/framework-solid/package.json +++ b/examples/framework-solid/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-solid", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index 384f7f47b..0d9bae2eb 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-svelte", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index e24e31040..d6a4c41aa 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -1,5 +1,6 @@ { "name": "@example/framework-vue", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/minimal/package.json b/examples/minimal/package.json index 6ff0cf07c..5e6a913d3 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -1,5 +1,6 @@ { "name": "@example/minimal", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/non-html-pages/package.json b/examples/non-html-pages/package.json index b163918bc..d9158e852 100644 --- a/examples/non-html-pages/package.json +++ b/examples/non-html-pages/package.json @@ -1,5 +1,6 @@ { "name": "@example/non-html-pages", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 29d48b1b5..2f20e3a61 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -1,5 +1,6 @@ { "name": "@example/portfolio", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 2c82596b9..7a52d26db 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -1,5 +1,6 @@ { "name": "@example/ssr", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index a48398075..3c5a1c375 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-markdown-plugins", + "type": "module", "version": "0.0.2", "private": true, "scripts": { diff --git a/examples/with-markdown-shiki/package.json b/examples/with-markdown-shiki/package.json index 09e16b135..f8def392b 100644 --- a/examples/with-markdown-shiki/package.json +++ b/examples/with-markdown-shiki/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-markdown-shiki", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-mdx/package.json b/examples/with-mdx/package.json index 7f81724dc..bd1918693 100644 --- a/examples/with-mdx/package.json +++ b/examples/with-mdx/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-mdx", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 3531af87f..106c4c46d 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-nanostores", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index fae43e7e2..3c174fabb 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-tailwindcss", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-vite-plugin-pwa/package.json b/examples/with-vite-plugin-pwa/package.json index 68b85453a..36adf3673 100644 --- a/examples/with-vite-plugin-pwa/package.json +++ b/examples/with-vite-plugin-pwa/package.json @@ -1,5 +1,6 @@ { "name": "@example/with-vite-plugin-pwa", + "type": "module", "version": "0.0.1", "private": true, "scripts": { diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index 67d2d8274..362971bf7 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -1,7 +1,7 @@ { "name": "@example/with-vitest", - "version": "0.0.1", "type": "module", + "version": "0.0.1", "private": true, "scripts": { "dev": "astro dev", diff --git a/packages/integrations/tailwind/README.md b/packages/integrations/tailwind/README.md index 9eaf95452..6d118a79c 100644 --- a/packages/integrations/tailwind/README.md +++ b/packages/integrations/tailwind/README.md @@ -93,7 +93,7 @@ import tailwind from '@astrojs/tailwind'; export default { integrations: [tailwind({ // Example: Provide a custom path to a Tailwind config file - config: { path: './custom-config.js' }, + config: { path: './custom-config.cjs' }, })], } ```