1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00
anytype-ts/rspack.node.config.js
2024-11-10 09:21:27 +08:00

33 lines
No EOL
536 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/,
}),
],
stats: 'detailed',
};
};