mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +08:00
fix: build
This commit is contained in:
parent
61ba4f9a7e
commit
f97e7c1bff
@ -63,7 +63,7 @@
|
||||
"typescript": "^5.5.4",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^4.5.3",
|
||||
"vue-tsc": "^1.8.27",
|
||||
"vue-tsc": "^2.1.6",
|
||||
"ws": "^8.18.0"
|
||||
}
|
||||
}
|
571
pnpm-lock.yaml
571
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,7 @@ import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import { splitResource } from './resource.js';
|
||||
import compressing from 'compressing';
|
||||
import json from '@rollup/plugin-json';
|
||||
|
||||
const type = process.argv[2];
|
||||
const map = false;
|
||||
@ -137,7 +138,8 @@ const compress = type === 'dist';
|
||||
}),
|
||||
terser(),
|
||||
resolve(),
|
||||
commonjs()
|
||||
commonjs(),
|
||||
json()
|
||||
]
|
||||
});
|
||||
await build.write({
|
||||
|
@ -966,6 +966,7 @@ export class Layer extends Container {
|
||||
const w = this.mapWidth;
|
||||
const h = this.mapHeight;
|
||||
|
||||
// todo: 如何定向优化?
|
||||
// this.autotiles = {};
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, onUpdated, ref, watch } from 'vue';
|
||||
import { onMounted, onUpdated, Ref, ref, watch } from 'vue';
|
||||
import Box from '../components/box.vue';
|
||||
import { GameUi } from '@/core/main/custom/ui';
|
||||
import type { DamageEnemy, EnemyInfo } from '@/game/enemy/damage';
|
||||
|
@ -4,7 +4,8 @@
|
||||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Node",
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"jsxImportSource": "vue",
|
||||
@ -20,12 +21,6 @@
|
||||
"@ui/*": ["src/ui/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue",
|
||||
"mota.config.ts"
|
||||
],
|
||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
@ -7,5 +7,5 @@
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true
|
||||
},
|
||||
"include": ["vite.config.ts", "mota.config.ts", "script/**/*.ts"]
|
||||
"include": ["vite.config.ts", "script/**/*.ts"]
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ import legacy from '@vitejs/plugin-legacy';
|
||||
import components from 'unplugin-vue-components/vite';
|
||||
import vuejsx from '@vitejs/plugin-vue-jsx'
|
||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||
import motaConfig from './mota.config';
|
||||
import { resolve } from 'path';
|
||||
import postcssPresetEnv from 'postcss-preset-env';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user