Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/vite-playground",
"private": true,
"version": "1.0.0",
"type": "module",
"devDependencies": {
"@types/node": "^22.5.1",
"convert-source-map": "^2.0.0",
Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// postcss.config.ts
module.exports = {
plugins: {
tailwindcss: { config: __dirname + '/tailwind.config.js' },
Expand Down
1 change: 1 addition & 0 deletions playground/vue-asset-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-server-origin",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
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
12 changes: 5 additions & 7 deletions playground/vue-jsx/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const vueJsxPlugin = require('@vitejs/plugin-vue-jsx')
const vuePlugin = require('@vitejs/plugin-vue')
import { defineConfig } from 'vite'
import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
import vuePlugin from '@vitejs/plugin-vue'

/**
* @type {import('vite').UserConfig}
*/
module.exports = {
export default defineConfig({
plugins: [
vueJsxPlugin({
include: [/\.tesx$/, /\.[jt]sx$/],
Expand Down Expand Up @@ -39,4 +37,4 @@ export default defineComponent(() => {
optimizeDeps: {
disabled: true,
},
}
})
1 change: 1 addition & 0 deletions playground/vue-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-legacy",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
1 change: 1 addition & 0 deletions playground/vue-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-lib",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev-consumer": "vite --config ./vite.config.consumer.ts",
"build-lib": "vite build --config ./vite.config.lib.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
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-server-origin",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
2 changes: 1 addition & 1 deletion playground/vue-sourcemap/SassWithImport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</template>

<style lang="sass">
@import './sassWithImportImported'
@use './sassWithImportImported'

.sass-with-import
color: red
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ exports[`serve:vue-sourcemap > sass with import > serve-sass-with-import 1`] = `
</template>

<style lang="sass">
@import './sassWithImportImported'
@use './sassWithImportImported'

.sass-with-import
color: red
Expand Down Expand Up @@ -308,7 +308,7 @@ exports[`serve:vue-sourcemap > src imported sass > serve-src-imported-sass 1`] =
".src-import-sass-imported
color: red
",
"@import './src-import-imported'
"@use './src-import-imported'

.src-import-sass
color: red
Expand Down
1 change: 1 addition & 0 deletions playground/vue-sourcemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@vitejs/test-vue-sourcemap",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
6 changes: 4 additions & 2 deletions playground/vue-sourcemap/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module.exports = {
plugins: [require('postcss-nested')],
import postcssNested from 'postcss-nested'

export default {
plugins: [postcssNested],
}
2 changes: 1 addition & 1 deletion playground/vue-sourcemap/src-import/src-import.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './src-import-imported'
@use './src-import-imported'

.src-import-sass
color: red
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