mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Switch huly core (#10041)
* Switch to huly.core Signed-off-by: Andrey Sobolev <haiodo@gmail.com> * Fix build Signed-off-by: Andrey Sobolev <haiodo@gmail.com> --------- Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -31,11 +31,16 @@ const devProduction = clientType === 'dev-production'
|
||||
const devProductionHuly = clientType === 'dev-huly'
|
||||
const devProductionBold = clientType === 'dev-bold'
|
||||
const dev =
|
||||
(process.env.CLIENT_TYPE ?? '') === 'dev' || devServer || devProduction || devProductionHuly || devProductionBold || devServerWorker || devServerWorkerLocal || devServerTest
|
||||
(process.env.CLIENT_TYPE ?? '') === 'dev' ||
|
||||
devServer ||
|
||||
devProduction ||
|
||||
devProductionHuly ||
|
||||
devProductionBold ||
|
||||
devServerWorker ||
|
||||
devServerWorkerLocal ||
|
||||
devServerTest
|
||||
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
|
||||
|
||||
const { EsbuildPlugin } = require('esbuild-loader')
|
||||
|
||||
const doValidate = !prod || process.env.DO_VALIDATE === 'true'
|
||||
|
||||
const useCache = process.env.USE_CACHE === 'true'
|
||||
@@ -264,7 +269,6 @@ module.exports = [
|
||||
optimization: prod
|
||||
? {
|
||||
minimize: true,
|
||||
minimizer: [new EsbuildPlugin({ target: 'es2021' })],
|
||||
splitChunks: {
|
||||
chunks: 'all'
|
||||
}
|
||||
@@ -482,11 +486,11 @@ module.exports = [
|
||||
errors: true,
|
||||
warnings: false,
|
||||
runtimeErrors: (error) => {
|
||||
if (error.message.includes("ResizeObserver")) {
|
||||
return false;
|
||||
if (error.message.includes('ResizeObserver')) {
|
||||
return false
|
||||
}
|
||||
return true;
|
||||
},
|
||||
return true
|
||||
}
|
||||
},
|
||||
progress: false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user