1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

fix compiling by ignoring missing module

Missing module osx-temperature-sensor
This commit is contained in:
Chris Chua 2024-11-08 13:15:57 +08:00
parent f1b0584210
commit d07342cfed
2 changed files with 13 additions and 2 deletions

View file

@ -116,6 +116,10 @@ module.exports = (env, argv) => {
plugins: [
//new BundleAnalyzerPlugin(),
new rspack.IgnorePlugin({
resourceRegExp: /osx-temperature-sensor/,
}),
new rspack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),

View file

@ -1,3 +1,5 @@
const rspack = require('@rspack/core');
module.exports = (env) => {
return {
target: 'node',
@ -18,7 +20,12 @@ module.exports = (env) => {
rules: [
{ test: /\.node$/, loader: 'node-loader' },
]
}
},
plugins: [
new rspack.IgnorePlugin({
resourceRegExp: /osx-temperature-sensor/,
}),
],
};
};