mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-08 09:31:58 +00:00

* feat: extract web content as a tree * chore: update test data * chore: update test data * feat: update answer of evaluation * chore: update test cases * chore: remove focusing on cases * fix: ci * fix: put rect in html tree * fix: CI * fix: AI test * fix: lint * fix: CI * fix: static-page compatibility * fix: CI * fix: map by markerId * fix: llm planning prompt * chore: update hash length * chore: ignore writing dump file * fix: lint * fix: ci snapshot * chore: snapshot tree in web extractor * chore: export tree utils in core * chore: export tree utils in core * fix: CI * fix: update test case and evaluation * chore: remove unused file * refactor(extract): modify dependencies (#358) * refactor(extract): modify dependencies * chore: modify files config * chore: add indexId as key for map --------- Co-authored-by: Zhou Xiao <zhouxiao.shaw@bytedance.com>
24 lines
635 B
TypeScript
24 lines
635 B
TypeScript
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
|
|
|
// It was split into two configuration files because of a bug in the build config array
|
|
export default defineConfig({
|
|
plugins: [moduleTools()],
|
|
buildConfig: {
|
|
platform: 'browser',
|
|
buildType: 'bundle',
|
|
format: 'iife',
|
|
dts: false,
|
|
input: {
|
|
htmlElement: 'src/extractor/index.ts',
|
|
htmlElementDebug: 'src/extractor/debug.ts',
|
|
},
|
|
autoExternal: false,
|
|
outDir: 'dist/script',
|
|
esbuildOptions: (options) => {
|
|
options.globalName = 'midscene_element_inspector';
|
|
return options;
|
|
},
|
|
target: 'es6',
|
|
},
|
|
});
|