mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
* chore: add license-header * chore: add precommit * chore: add license header * fix: only js & shell style
21 lines
415 B
JavaScript
21 lines
415 B
JavaScript
/**
|
|
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
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 版本
|
|
},
|
|
},
|
|
});
|