Skip to content

Commit

Permalink
chore: add type: module to playgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Feb 28, 2024
1 parent 3f8b472 commit 5e4b302
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions playground/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-tailwind",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions playground/vue-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-jsx",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
6 changes: 3 additions & 3 deletions playground/vue-jsx/vite.config.js
Original file line number Diff line number Diff line change
@@ -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$/],
Expand Down
1 change: 1 addition & 0 deletions playground/vue-legacy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@vitejs/test-vue-legacy",
"private": true,
"type": "module",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions playground/vue-lib/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions playground/vue-server-origin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@vitejs/test-vue-server-origin",
"private": true,
"type": "module",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions playground/vue-sourcemap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@vitejs/test-vue-sourcemap",
"private": true,
"type": "module",
"version": "0.0.0",
"scripts": {
"dev": "vite",
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions playground/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down

0 comments on commit 5e4b302

Please sign in to comment.