Skip to content

Commit

Permalink
Improve TsUrlFilter build
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/tsurlfilter from fix/tsurlfilter-rollup to master

Squashed commit of the following:

commit be4e674
Author: scripthunter7 <[email protected]>
Date:   Wed Mar 27 16:08:56 2024 +0100

    remove outdated packages
  • Loading branch information
scripthunter7 committed Mar 27, 2024
1 parent eb21b0b commit ecdc49a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 75 deletions.
4 changes: 2 additions & 2 deletions packages/tsurlfilter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"@rollup/plugin-commonjs": "22.0.2",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "8.3.4",
"@swc/core": "1.4.8",
"@swc/jest": "0.2.36",
Expand All @@ -128,9 +129,8 @@
"rimraf": "3.0.2",
"rollup": "2.77.3",
"rollup-plugin-cleanup": "3.2.1",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-preserve-shebangs": "0.2.0",
"rollup-plugin-terser": "7.0.2",
"tldts-core": "^6.1.13",
"ts-node": "^10.9.1",
"tslib": "2.4.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/tsurlfilter/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import globals from 'rollup-plugin-node-globals';
import nodePolyfills from 'rollup-plugin-polyfill-node';
import camelCase from 'lodash/camelCase';
import typescript from '@rollup/plugin-typescript';
import json from '@rollup/plugin-json';
import cleanup from 'rollup-plugin-cleanup';
import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import { preserveShebangs } from 'rollup-plugin-preserve-shebangs';

const DEFAULT_OUTPUT_PATH = 'dist';
Expand All @@ -32,7 +32,7 @@ const commonConfig = {
commonjs({
sourceMap: false,
}),
globals(),
nodePolyfills(),

// Allow node_modules resolution, so you can use 'external' to control
// which external modules to include in the bundle
Expand Down
127 changes: 57 additions & 70 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ecdc49a

Please sign in to comment.