cleanup + update
This commit is contained in:
parent
0dc94a8024
commit
69d3ab74dd
5 changed files with 1154 additions and 45 deletions
1178
example/package-lock.json
generated
1178
example/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,7 @@
|
|||
"@types/react-dom": "^17.0.0",
|
||||
"@vitejs/plugin-react-refresh": "^1.1.0",
|
||||
"typescript": "^4.1.2",
|
||||
"vite": "^2.0.0-beta.65",
|
||||
"vite-plugin-typescript-starter": "file:.."
|
||||
"vite": "^2.0.0-beta.69",
|
||||
"vite-plugin-package-version": "file:.."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import reactRefresh from '@vitejs/plugin-react-refresh';
|
||||
import { defineConfig } from 'vite';
|
||||
import { ViteStarter } from 'vite-plugin-typescript-starter';
|
||||
import loadVersion from 'vite-plugin-package-version';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [reactRefresh(), ViteStarter()],
|
||||
plugins: [reactRefresh(), loadVersion()],
|
||||
});
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
"postinstall": "cd example && npm install"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vite": ">=2.0.0-beta.65"
|
||||
"vite": ">=2.0.0-beta.69"
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^5.3.0",
|
||||
"tsup": "^3.12.1",
|
||||
"typescript": "^4.1.3",
|
||||
"vite": "^2.0.0-beta.65"
|
||||
"vite": "^2.0.0-beta.69"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
import { Plugin } from 'vite';
|
||||
import type { Plugin } from 'vite';
|
||||
|
||||
export const ViteStarter = (): Plugin => {
|
||||
const createPlugin = (): Plugin => {
|
||||
return {
|
||||
name: 'vite-plugin-package-version',
|
||||
// plugin code: https://vitejs.dev/guide/api-plugin.html
|
||||
};
|
||||
};
|
||||
|
||||
export default {
|
||||
ViteStarter,
|
||||
};
|
||||
export default createPlugin;
|
||||
|
|
Loading…
Reference in a new issue