File tree Expand file tree Collapse file tree 4 files changed +14
-24
lines changed Expand file tree Collapse file tree 4 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " playground-big" ,
3
3
"private" : true ,
4
4
"version" : " 0.0.0" ,
5
+ "type" : " module" ,
5
6
"scripts" : {
6
7
"dev" : " vite" ,
7
8
"build" : " vite build" ,
Original file line number Diff line number Diff line change 1
- const { svelte } = require ( '@sveltejs/vite-plugin-svelte' ) ;
2
- const { defineConfig } = require ( 'vite' ) ;
1
+ import { svelte } from '@sveltejs/vite-plugin-svelte' ;
2
+ import { defineConfig } from 'vite' ;
3
3
4
- module . exports = defineConfig ( ( { command, mode } ) => {
5
- const isProduction = mode === 'production' ;
6
- return {
7
- plugins : [ svelte ( ) ] ,
8
- build : {
9
- minify : isProduction
10
- }
11
- } ;
4
+ export default defineConfig ( {
5
+ plugins : [ svelte ( ) ]
12
6
} ) ;
Original file line number Diff line number Diff line change 2
2
"name" : " playground-windicss" ,
3
3
"private" : true ,
4
4
"version" : " 0.0.0" ,
5
+ "type" : " module" ,
5
6
"scripts" : {
6
7
"dev" : " vite" ,
7
8
"build" : " vite build" ,
Original file line number Diff line number Diff line change 1
- const { svelte } = require ( '@sveltejs/vite-plugin-svelte' ) ;
2
- const { defineConfig } = require ( 'vite' ) ;
3
- const vitePluginWindicss = require ( 'vite-plugin-windicss' ) . default ;
1
+ import { svelte } from '@sveltejs/vite-plugin-svelte' ;
2
+ import { defineConfig } from 'vite' ;
3
+ import vitePluginWindicss from 'vite-plugin-windicss' ;
4
4
5
- module . exports = defineConfig ( ( { command, mode } ) => {
6
- const isProduction = mode === 'production' ;
7
- return {
8
- plugins : [
9
- svelte ( { experimental : { generateMissingPreprocessorSourcemaps : true } } ) ,
10
- vitePluginWindicss ( )
11
- ] ,
12
- build : {
13
- minify : isProduction
14
- }
15
- } ;
5
+ export default defineConfig ( {
6
+ plugins : [
7
+ svelte ( { experimental : { generateMissingPreprocessorSourcemaps : true } } ) ,
8
+ vitePluginWindicss ( )
9
+ ]
16
10
} ) ;
You can’t perform that action at this time.
0 commit comments