mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-20 08:30:36 +03:00
improve bundle size and build process for tests
This commit is contained in:
@@ -59,32 +59,6 @@ module.exports = (esm, options, { declarationFiles = false, outputStyle = false
|
||||
format: esm ? 'esm' : 'umd',
|
||||
generatedCode: esm ? 'es2015' : 'es5',
|
||||
file: path.resolve(distPath, `${file}${esm ? '.esm' : ''}.js`),
|
||||
plugins: [
|
||||
rollupTerser({
|
||||
ecma: esm ? 2015 : 5,
|
||||
safari10: true,
|
||||
|
||||
mangle: {
|
||||
safari10: true,
|
||||
keep_fnames: true, // eslint-disable-line camelcase
|
||||
/*
|
||||
properties: {
|
||||
regex: /^_/,
|
||||
},
|
||||
*/
|
||||
},
|
||||
compress: {
|
||||
defaults: false,
|
||||
hoist_funs: true, // eslint-disable-line camelcase
|
||||
},
|
||||
format: {
|
||||
beautify: true,
|
||||
max_line_len: 80, // eslint-disable-line camelcase
|
||||
braces: true,
|
||||
indent_level: 2, // eslint-disable-line camelcase
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
esm,
|
||||
buildMinifiedVersion
|
||||
|
||||
Reference in New Issue
Block a user