workflow: add size-check package
This commit is contained in:
3
packages/size-check/README.md
Normal file
3
packages/size-check/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Size Check
|
||||
|
||||
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).
|
||||
9
packages/size-check/package.json
Normal file
9
packages/size-check/package.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "@vue/size-check",
|
||||
"version": "3.0.0-alpha.1",
|
||||
"private": true,
|
||||
"buildOptions": {
|
||||
"name": "Vue",
|
||||
"formats": ["global"]
|
||||
}
|
||||
}
|
||||
4
packages/size-check/src/index.ts
Normal file
4
packages/size-check/src/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { render, createVNode } from '@vue/runtime-dom'
|
||||
|
||||
// The bare minimum code required for rendering something to the screen
|
||||
render(createVNode('div'), document.getElementById('app')!)
|
||||
Reference in New Issue
Block a user