v0.62.18: Firefox AMO compliance and new extension ID

- New Firefox extension ID for AMO
- Fixed data_collection_permissions for Mozilla compliance
- Updated webpack config for ES2022 target
- Added firefox-postprocess.sh script
- Bumped all packages to 0.62.18
This commit is contained in:
2026-01-17 16:31:30 +03:00
parent 9b0feb43b4
commit 7e586239ae
12 changed files with 105 additions and 15 deletions
+47 -2
View File
@@ -26,8 +26,25 @@ module.exports = (entry, alias = {}) => ({
context: __dirname,
devtool: false,
entry,
target: ['web', 'es2022'],
module: {
rules: [
{
test: /\.js$/,
loader: 'string-replace-loader',
options: {
multiple: [
{
search: /Function\s*\(\s*["']return this["']\s*\)\s*\(\s*\)/g,
replace: 'globalThis'
},
{
search: /Function\s*\(\s*["']return this["']\s*\)/g,
replace: '(function(){return globalThis})'
}
]
}
},
{
exclude: /(node_modules)/,
test: /\.(ts|tsx)$/,
@@ -59,12 +76,40 @@ module.exports = (entry, alias = {}) => ({
output: {
chunkFilename: '[name].js',
filename: '[name].js',
globalObject: '(typeof self !== \'undefined\' ? self : this)',
path: path.join(__dirname, 'build')
globalObject: 'globalThis',
path: path.join(__dirname, 'build'),
environment: {
arrowFunction: true,
bigIntLiteral: true,
const: true,
destructuring: true,
dynamicImport: true,
forOf: true,
module: true,
optionalChaining: true,
templateLiteral: true
}
},
performance: {
hints: false
},
optimization: {
minimizer: [
new (require('terser-webpack-plugin'))({
terserOptions: {
compress: {
evaluate: false,
unsafe_Function: false
},
mangle: true,
format: {
comments: false
}
},
extractComments: false
})
]
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],