mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
33 lines
No EOL
536 B
JavaScript
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',
|
|
};
|
|
}; |