lopatnov / rollup-plugin-uglify Goto Github PK
View Code? Open in Web Editor NEWA rollup plugin to minify javascript with Terser
Home Page: https://lopatnov.github.io/rollup-plugin-uglify/
License: Apache License 2.0
A rollup plugin to minify javascript with Terser
Home Page: https://lopatnov.github.io/rollup-plugin-uglify/
License: Apache License 2.0
Ci/CD pipeline shows
"cannot find module ' @rollup/pluginutils'
Require stack:
** To reproduce: **
Rollup and @lopatnov/rollup-plugin-uglify
are dependencies in a Drupal project.
We have the following rollup devdependencies:
"@lopatnov/rollup-plugin-uglify": "^2.1.2",
"rollup": "^2.61.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-builtins": "^2.1.2",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
in our CI/CD pipeline, we execute the following npm script:
"scripts:rollup": "rollup -c rollup.config.js",
And this is in our rollup config:
import commonjs from "rollup-plugin-commonjs";
import nodeResolve from "rollup-plugin-node-resolve";
import globals from "rollup-plugin-node-globals";
import builtins from "rollup-plugin-node-builtins";
import uglify from "@lopatnov/rollup-plugin-uglify";
export default [
{
input: "src/scripts/js/main.js",
output: {
file: "dist/js/main.min.js",
format: "iife",
name: "Main",
sourcemap: true
},
plugins: [
nodeResolve({ preferBuiltins: false }), // or `true`
commonjs(),
globals(),
builtins(),
uglify(),
],
},
];
Expected behavior
We expect Rollup to build without issue
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
We're running this in Gitlab.
rollup-plugin-uglify doesn’t use uglify
Describe the bug
plugin still references rollup-pluginutils, which was moved and is now available at @rollup/pluginutils
Additional context
PR: #10
(the old rollup-pluginutils have to be removed from package.json)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.