File tree Expand file tree Collapse file tree 12 files changed +108
-99
lines changed Expand file tree Collapse file tree 12 files changed +108
-99
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
+ < title > Vite App</ title >
7
+ </ head >
8
+ < body >
9
+ < div id ="app "> </ div >
10
+ < script type ="module " src ="/src/main.ts "> </ script >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @intlify/size-check-core" ,
3
3
"private" : true ,
4
+ "scripts" : {
5
+ "dev" : " vite" ,
6
+ "build" : " vite build" ,
7
+ "check" : " tsc" ,
8
+ "serve" : " vite preview"
9
+ },
4
10
"dependencies" : {
5
- "@intlify/core" : " 9.0.0"
11
+ "@intlify/core" : " 9.2.0-alpha.6"
12
+ },
13
+ "devDependencies" : {
14
+ "vite" : " ^2.4.2"
6
15
}
7
- }
16
+ }
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'vite'
2
+
3
+ export default defineConfig ( {
4
+ define : {
5
+ __DEV__ : false ,
6
+ // this is only used during tests
7
+ __TEST__ : false ,
8
+ // If the build is expected to run directly in the browser (global / esm builds)
9
+ __BROWSER__ : true ,
10
+ // is targeting bundlers?
11
+ __BUNDLER__ : false ,
12
+ __GLOBAL__ : false ,
13
+ __RUNTIME__ : true ,
14
+ // is targeting Node (SSR)?
15
+ __NODE_JS__ : false ,
16
+ 'process.env.NODE_ENV' : JSON . stringify ( 'production' ) ,
17
+ __INTLIFY_PROD_DEVTOOLS__ : false
18
+ } ,
19
+ plugins : [ ]
20
+ } )
Original file line number Diff line number Diff line change 1
- # Size Check for vue-ii18n
1
+ # Size Check for vue-i18n
2
2
3
3
This package is private and is used for checking the baseline runtime size after tree shaking (with only the bare minimal code required to render something to the screen).
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
+ < title > Vite App</ title >
7
+ </ head >
8
+ < body >
9
+ < div id ="app "> </ div >
10
+ < script type ="module " src ="/src/main.ts "> </ script >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @intlify/size-check-vue-i18n" ,
3
3
"private" : true ,
4
+ "scripts" : {
5
+ "dev" : " vite" ,
6
+ "build" : " vite build" ,
7
+ "check" : " vue-tsc" ,
8
+ "serve" : " vite preview"
9
+ },
4
10
"dependencies" : {
5
- "@intlify/vue-i18n" : " 9.0.0"
11
+ "vue" : " ^3.1.5" ,
12
+ "vue-i18n" : " 9.2.0-alpha.6"
13
+ },
14
+ "devDependencies" : {
15
+ "@vitejs/plugin-vue" : " ^1.2.5" ,
16
+ "@vue/compiler-sfc" : " ^3.1.5" ,
17
+ "vite" : " ^2.4.2" ,
18
+ "vue-tsc" : " ^0.0.24"
6
19
}
7
- }
20
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { h , createApp } from '@vue/runtime-dom'
2
- import { createI18n } from '../../ vue-i18n/dist/vue-i18n.runtime.esm-bundler.js '
2
+ import { createI18n } from 'vue-i18n'
3
3
4
4
const i18n = createI18n ( {
5
5
legacy : false ,
6
6
locale : 'en' ,
7
7
messages : {
8
8
en : {
9
- hello : 'hello!'
9
+ hello : ( ) => 'hello!'
10
10
}
11
11
}
12
12
} )
You can’t perform that action at this time.
0 commit comments