mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
const path = require('path');
|
|
|
|
const { main } = require('./package.json');
|
|
|
|
const { defineConfig } = require(path.resolve(__dirname, main));
|
|
|
|
module.exports = defineConfig({
|
|
packageRoot: __dirname,
|
|
preset: 'node',
|
|
settings: {
|
|
react: {
|
|
version: 'detect', // 自动检测 React 版本
|
|
},
|
|
},
|
|
});
|