Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
33
frontend/node_modules/react-dropzone/rollup.config.js
generated
vendored
33
frontend/node_modules/react-dropzone/rollup.config.js
generated
vendored
@@ -1,33 +0,0 @@
|
||||
const { nodeResolve } = require("@rollup/plugin-node-resolve");
|
||||
const commonjs = require("@rollup/plugin-commonjs");
|
||||
const { babel } = require("@rollup/plugin-babel");
|
||||
const { terser } = require("rollup-plugin-terser");
|
||||
|
||||
const umdGlobals = {
|
||||
react: "React",
|
||||
"prop-types": "PropTypes",
|
||||
};
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
input: "./src/index.js",
|
||||
output: {
|
||||
file: "dist/index.js",
|
||||
format: "umd",
|
||||
name: "reactDropzone",
|
||||
globals: umdGlobals,
|
||||
sourcemap: "inline",
|
||||
exports: "named",
|
||||
},
|
||||
external: Object.keys(umdGlobals),
|
||||
plugins: [
|
||||
nodeResolve(),
|
||||
commonjs({ include: "**/node_modules/**" }),
|
||||
babel({
|
||||
exclude: "**/node_modules/**",
|
||||
babelHelpers: "bundled",
|
||||
}),
|
||||
terser(),
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user