1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
anytype-ts/rspack.node.config.js
Chris Chua d07342cfed fix compiling by ignoring missing module
Missing module osx-temperature-sensor
2024-11-10 09:21:26 +08:00

31 lines
No EOL
514 B
JavaScript

const rspack = require('@rspack/core');
module.exports = (env) => {
return {
target: 'node',
mode: 'production',
optimization: {
minimize: false,
removeAvailableModules: false,
removeEmptyChunks: false,
splitChunks: false,
},
entry: './electron.js',
output: {
filename: 'bundle-back.js'
},
module: {
rules: [
{ test: /\.node$/, loader: 'node-loader' },
]
},
plugins: [
new rspack.IgnorePlugin({
resourceRegExp: /osx-temperature-sensor/,
}),
],
};
};