I am currently working on a Firefox extension, but I am facing an issue with webpack bundling. Since Firefox requires me to upload the source code of my addon, the reviewer must be able to create the same build as I did. However, I am encountering a problem where Webpack always creates a different build, which makes it impossible for the reviewer to replicate my exact build.
To be more specific, the builds are same on the same system, but when I make build on my Mac and then on Linux, they end up being different.
Here is my webpack config:
mode: 'production',
optimization: {
chunkIds: 'deterministic',
moduleIds: 'deterministic',
minimize: false,
runtimeChunk: false,
splitChunks: {
chunks(chunk) {
return chunk.name !== 'contentScript'
},
minChunks: 3,
maxSize: 3500000
}
}
})
Do you have any advices on how to solve this? If you have any questions, feel free to ask!