Closed xWTF closed 2 years ago
I see, having a standard ts project structure is better. A few things to note:
files
in package.json to whitelist all dist files and src files here (ref)javascript-obfuscator
and rollup
to dev deps to make IDE and tsc happy, since yarn refuses to install peer deps automaticallyThanks for your patience @xWTF! Great contribution 🥳
Changes
This PR converts the plugin to typescript, which provides better auto-completion and type checking for options:
Let's use strongly typed JS, because why not :)
It also provides a few JSDoc comment:![2](https://user-images.githubusercontent.com/31540475/132940025-362b298a-21e7-4556-9622-37da91db1e69.png)
The
rollup-pluginutils
package appears to be replaced by@rollup/pluginutils
, the old one was archived on GitHub and haven't received any update for 2 years. So I upgraded the old package to@rollup/pluginutils
.