Skip to content

Commit 0a83971

Browse files
committed
update size-check-* packages
1 parent eb26c18 commit 0a83971

File tree

12 files changed

+108
-99
lines changed

12 files changed

+108
-99
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
22
"name": "@intlify/size-check-core",
33
"private": true,
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build",
7+
"check": "tsc",
8+
"serve": "vite preview"
9+
},
410
"dependencies": {
5-
"@intlify/core": "9.0.0"
11+
"@intlify/core": "9.2.0-alpha.6"
12+
},
13+
"devDependencies": {
14+
"vite": "^2.4.2"
615
}
7-
}
16+
}

packages/size-check-core/rollup.config.js

Lines changed: 0 additions & 43 deletions
This file was deleted.
File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Size Check for vue-ii18n
1+
# Size Check for vue-i18n
22

33
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).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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>
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
22
"name": "@intlify/size-check-vue-i18n",
33
"private": true,
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build",
7+
"check": "vue-tsc",
8+
"serve": "vite preview"
9+
},
410
"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"
619
}
7-
}
20+
}

packages/size-check-vue-i18n/rollup.config.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

packages/size-check-vue-i18n/src/index.js renamed to packages/size-check-vue-i18n/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
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'
33

44
const i18n = createI18n({
55
legacy: false,
66
locale: 'en',
77
messages: {
88
en: {
9-
hello: 'hello!'
9+
hello: () => 'hello!'
1010
}
1111
}
1212
})

0 commit comments

Comments
 (0)