feat: add flow edit

This commit is contained in:
2024-09-26 21:08:15 +08:00
parent ad0da1feba
commit 482c63bab2
3 changed files with 72 additions and 15 deletions

View File

@@ -48,11 +48,19 @@ module.exports = {
loader: 'ts-loader',
options: {
allowTsInNodeModules: true,
transpileOnly: true, // 可选,加快构建速度
},
},
},
],
},
// 忽略特定警告
ignoreWarnings: [
{
message: /Critical dependency: the request of a dependency is an expression/,
},
],
resolve: {
extensions: ['.ts', '.js'],
alias: {
@@ -60,9 +68,7 @@ module.exports = {
hexoid: 'hexoid/dist/index.js',
},
},
// externals: [
// // nodeExternals(),
// ],
externals: {
sequelize: 'commonjs sequelize',
'socket.io': 'commonjs socket.io',
@@ -73,5 +79,8 @@ module.exports = {
node: {},
stats: {
errorDetails: true,
all: false,
errors: true,
warnings: true,
},
};