Skip to content

Commit

Permalink
Switch to @javascript-obfuscator/escodegen (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin authored Feb 23, 2023
1 parent 1e2d020 commit 2ff44cf
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 37 deletions.
77 changes: 43 additions & 34 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"dist"
],
"dependencies": {
"@javascript-obfuscator/escodegen": "^2.3.0",
"@rollup/pluginutils": "^4.2.1",
"acorn": "^8.8.0",
"convert-source-map": "^1.8.0",
"escodegen": "^2.0.0",
"multi-stage-sourcemap": "^0.3.1",
"unassert": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const config = format => ({
input: 'src/unassert.js',
external: ['rollup-pluginutils', 'acorn', 'escodegen', 'unassert', 'convert-source-map', 'multi-stage-sourcemap'],
external: ['rollup-pluginutils', 'acorn', '@javascript-obfuscator/escodegen', 'unassert', 'convert-source-map', 'multi-stage-sourcemap'],
output: {
file: `dist/rollup-plugin-unassert.${format}.js`,
format
Expand Down
2 changes: 1 addition & 1 deletion src/unassert.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import {createFilter} from '@rollup/pluginutils';
import acorn from 'acorn';
import escodegen from 'escodegen';
import escodegen from '@javascript-obfuscator/escodegen';
import {unassertAst} from 'unassert';
import convert from 'convert-source-map';
import {transfer} from 'multi-stage-sourcemap';
Expand Down

0 comments on commit 2ff44cf

Please sign in to comment.