From 5e4b302d2c34a38b53889630f2397d8f2cbabbd3 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:13:40 +0900 Subject: [PATCH] chore: add `type: module` to playgrounds --- playground/tailwind/package.json | 1 + .../tailwind/{postcss.config.ts => postcss.config.cts} | 0 playground/vue-jsx/package.json | 1 + playground/vue-jsx/vite.config.js | 6 +++--- playground/vue-legacy/package.json | 1 + playground/vue-lib/package.json | 1 + playground/vue-server-origin/package.json | 1 + playground/vue-sourcemap/package.json | 1 + .../vue-sourcemap/{postcss.config.js => postcss.config.cjs} | 0 playground/vue/package.json | 1 + 10 files changed, 10 insertions(+), 3 deletions(-) rename playground/tailwind/{postcss.config.ts => postcss.config.cts} (100%) rename playground/vue-sourcemap/{postcss.config.js => postcss.config.cjs} (100%) diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index 07b9d73b..132d6456 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -2,6 +2,7 @@ "name": "@vitejs/test-tailwind", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/playground/tailwind/postcss.config.ts b/playground/tailwind/postcss.config.cts similarity index 100% rename from playground/tailwind/postcss.config.ts rename to playground/tailwind/postcss.config.cts diff --git a/playground/vue-jsx/package.json b/playground/vue-jsx/package.json index 85ff40a2..f439d0b5 100644 --- a/playground/vue-jsx/package.json +++ b/playground/vue-jsx/package.json @@ -2,6 +2,7 @@ "name": "@vitejs/test-vue-jsx", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/playground/vue-jsx/vite.config.js b/playground/vue-jsx/vite.config.js index f9bff929..45ddcce8 100644 --- a/playground/vue-jsx/vite.config.js +++ b/playground/vue-jsx/vite.config.js @@ -1,10 +1,10 @@ -const vueJsxPlugin = require('@vitejs/plugin-vue-jsx') -const vuePlugin = require('@vitejs/plugin-vue') +import vueJsxPlugin from '@vitejs/plugin-vue-jsx' +import vuePlugin from '@vitejs/plugin-vue' /** * @type {import('vite').UserConfig} */ -module.exports = { +export default { plugins: [ vueJsxPlugin({ include: [/\.tesx$/, /\.[jt]sx$/], diff --git a/playground/vue-legacy/package.json b/playground/vue-legacy/package.json index ecc68ff6..6ce588c5 100644 --- a/playground/vue-legacy/package.json +++ b/playground/vue-legacy/package.json @@ -1,6 +1,7 @@ { "name": "@vitejs/test-vue-legacy", "private": true, + "type": "module", "version": "0.0.0", "scripts": { "dev": "vite", diff --git a/playground/vue-lib/package.json b/playground/vue-lib/package.json index 73c43b4b..a600da0f 100644 --- a/playground/vue-lib/package.json +++ b/playground/vue-lib/package.json @@ -1,6 +1,7 @@ { "name": "@vitejs/test-vue-lib", "private": true, + "type": "module", "version": "0.0.0", "scripts": { "dev-consumer": "vite --config ./vite.config.consumer.ts", diff --git a/playground/vue-server-origin/package.json b/playground/vue-server-origin/package.json index 1157930a..e1eca4d9 100644 --- a/playground/vue-server-origin/package.json +++ b/playground/vue-server-origin/package.json @@ -1,6 +1,7 @@ { "name": "@vitejs/test-vue-server-origin", "private": true, + "type": "module", "version": "0.0.0", "scripts": { "dev": "vite", diff --git a/playground/vue-sourcemap/package.json b/playground/vue-sourcemap/package.json index ea3fee53..821199c8 100644 --- a/playground/vue-sourcemap/package.json +++ b/playground/vue-sourcemap/package.json @@ -1,6 +1,7 @@ { "name": "@vitejs/test-vue-sourcemap", "private": true, + "type": "module", "version": "0.0.0", "scripts": { "dev": "vite", diff --git a/playground/vue-sourcemap/postcss.config.js b/playground/vue-sourcemap/postcss.config.cjs similarity index 100% rename from playground/vue-sourcemap/postcss.config.js rename to playground/vue-sourcemap/postcss.config.cjs diff --git a/playground/vue/package.json b/playground/vue/package.json index 05227881..0e6b9e35 100644 --- a/playground/vue/package.json +++ b/playground/vue/package.json @@ -2,6 +2,7 @@ "name": "@vitejs/test-vue", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build",