mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-12 18:22:27 +03:00
improve code
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = (testDir, onListening = null) => {
|
||||
|
||||
return createRollupConfig({
|
||||
project: name,
|
||||
mode: 'dev',
|
||||
mode: 'build',
|
||||
paths: {
|
||||
dist,
|
||||
src: path.resolve(testDir, './'),
|
||||
@@ -46,6 +46,7 @@ module.exports = (testDir, onListening = null) => {
|
||||
output: {
|
||||
sourcemap: true,
|
||||
},
|
||||
treeshake: true,
|
||||
plugins: [
|
||||
rollupPluginStyles(),
|
||||
rollupPluginHtml(`Playwright: ${name}`, htmlName, () =>
|
||||
|
||||
@@ -67,9 +67,11 @@ module.exports = (esm, options, { declarationFiles = false, outputStyle = false
|
||||
mangle: {
|
||||
safari10: true,
|
||||
keep_fnames: true, // eslint-disable-line camelcase
|
||||
/*
|
||||
properties: {
|
||||
regex: /^_/,
|
||||
},
|
||||
*/
|
||||
},
|
||||
compress: {
|
||||
defaults: false,
|
||||
|
||||
@@ -27,15 +27,15 @@ module.exports = (options) => {
|
||||
output,
|
||||
...rollupOptions,
|
||||
plugins: [
|
||||
rollupScss(extractStyle),
|
||||
rollupAlias(alias),
|
||||
rollupResolve(srcPath),
|
||||
rollupScss(extractStyle),
|
||||
rollupEsBuild({
|
||||
include: /\.[jt]sx?$/,
|
||||
sourceMap: true,
|
||||
target: 'es6',
|
||||
tsconfig: './tsconfig.json',
|
||||
}),
|
||||
rollupResolve(srcPath),
|
||||
rollupCommonjs(sourcemap),
|
||||
...plugins,
|
||||
].filter(Boolean),
|
||||
|
||||
Reference in New Issue
Block a user