fix(lite): Vite constants declaration (#6511)

This commit is contained in:
Thierry Goettelmann
2022-11-04 10:27:41 +01:00
committed by GitHub
parent 1c3cad9235
commit ff0307b68f
2 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,10 @@
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
globals: {
XO_LITE_GIT_HEAD: true,
XO_LITE_VERSION: true,
},
root: true,
env: {
node: true,

View File

@@ -1,2 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="json-rpc-2.0/dist" />
declare const XO_LITE_VERSION: string;
declare const XO_LITE_GIT_HEAD: string;