Skip to content

Commit 57f302f

Browse files
authored
test: remove deprecation warnings (#466)
1 parent 4d5ba34 commit 57f302f

File tree

15 files changed

+22
-14
lines changed

15 files changed

+22
-14
lines changed

playground/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/vite-playground",
33
"private": true,
44
"version": "1.0.0",
5+
"type": "module",
56
"devDependencies": {
67
"@types/node": "^22.5.1",
78
"convert-source-map": "^2.0.0",

playground/tailwind/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-tailwind",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

playground/tailwind/postcss.config.ts playground/tailwind/postcss.config.cts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// postcss.config.ts
21
module.exports = {
32
plugins: {
43
tailwindcss: { config: __dirname + '/tailwind.config.js' },

playground/vue-asset-base/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-server-origin",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

playground/vue-jsx/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-jsx",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

playground/vue-jsx/vite.config.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const vueJsxPlugin = require('@vitejs/plugin-vue-jsx')
2-
const vuePlugin = require('@vitejs/plugin-vue')
1+
import { defineConfig } from 'vite'
2+
import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
3+
import vuePlugin from '@vitejs/plugin-vue'
34

4-
/**
5-
* @type {import('vite').UserConfig}
6-
*/
7-
module.exports = {
5+
export default defineConfig({
86
plugins: [
97
vueJsxPlugin({
108
include: [/\.tesx$/, /\.[jt]sx$/],
@@ -39,4 +37,4 @@ export default defineComponent(() => {
3937
optimizeDeps: {
4038
disabled: true,
4139
},
42-
}
40+
})

playground/vue-legacy/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-legacy",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

playground/vue-lib/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-lib",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev-consumer": "vite --config ./vite.config.consumer.ts",
78
"build-lib": "vite build --config ./vite.config.lib.ts",

playground/vue-server-origin/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-server-origin",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

playground/vue-sourcemap/SassWithImport.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</template>
55

66
<style lang="sass">
7-
@import './sassWithImportImported'
7+
@use './sassWithImportImported'
88
99
.sass-with-import
1010
color: red

playground/vue-sourcemap/__tests__/__snapshots__/vue-sourcemap.spec.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ exports[`serve:vue-sourcemap > sass with import > serve-sass-with-import 1`] = `
268268
</template>
269269
270270
<style lang="sass">
271-
@import './sassWithImportImported'
271+
@use './sassWithImportImported'
272272
273273
.sass-with-import
274274
color: red
@@ -308,7 +308,7 @@ exports[`serve:vue-sourcemap > src imported sass > serve-src-imported-sass 1`] =
308308
".src-import-sass-imported
309309
color: red
310310
",
311-
"@import './src-import-imported'
311+
"@use './src-import-imported'
312312
313313
.src-import-sass
314314
color: red

playground/vue-sourcemap/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue-sourcemap",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
module.exports = {
2-
plugins: [require('postcss-nested')],
1+
import postcssNested from 'postcss-nested'
2+
3+
export default {
4+
plugins: [postcssNested],
35
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import './src-import-imported'
1+
@use './src-import-imported'
22

33
.src-import-sass
44
color: red

playground/vue/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@vitejs/test-vue",
33
"private": true,
44
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
67
"dev": "vite",
78
"build": "vite build",

0 commit comments

Comments
 (0)