-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: uglify is not a function #45
Comments
Changelog is clear about using named export. |
@TrySound Please elaborate why uglify-es is no longer supported. I can't see any deprecations in uglify-es itself. |
Or you can change this line in the index file ('.\node_modules\rollup-plugin-uglify\index.js') |
@ardivali I'm not gonna change the api. I think it's right. Use this const { uglify } = require('rollup-plugin-uglify') |
or this import { uglify } from 'rollup-plugin-uglify' |
Otherwise you need to do this ugly this const { default: uglify } = require('rollup-plugin-uglify');
const uglify = require('rollup-plugin-uglify').default; |
Hi. Using the following gives an error in the cli: TypeError: uglify is not a function
This fixes the issue though:
uglify.uglify()
Not sure if I've done something wrong or if there is a defect with the version I'm using ("version": "4.0.0").
Thanks
The text was updated successfully, but these errors were encountered: