{"size": 1020, "ext": "js", "max_stars_repo_path": "scripts/rollup.config.demo.js", "max_stars_repo_name": "fsjsd/react-router-utilitybelt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/rollup.config.demo.js", "max_issues_repo_name": "fsjsd/react-router-utilitybelt", "max_issues_repo_issues_event_min_datetime": "2019-10-25T10:02:12.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-02T12:27:18.000Z", "max_forks_repo_path": "scripts/rollup.config.demo.js", "max_forks_repo_name": "fsjsd/react-router-utilitybelt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 26.8421052632, "max_line_length": 69, "alphanum_fraction": 0.6490196078}
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import resolve from "rollup-plugin-node-resolve";
import replace from "rollup-plugin-replace";
import nodeResolve from "rollup-plugin-node-resolve";
//import minify from "rollup-plugin-babel-minify";

//const NODE_ENV = process.env.NODE_ENV || "development";
//const NODE_ENV = "production";
const NODE_ENV = "development";

console.log("rollup.config.demo", NODE_ENV);

export default {
  input: "./src/exports.js",
  output: {
    file: "./demoapp/node_modules/react-router-utilitybelt/index.js",
    format: "cjs"
  },
  external: ["react", "react-dom", "react-router-dom", "fsjsd-lgr"],
  plugins: [
    replace({
      "process.env.NODE_ENV": JSON.stringify(NODE_ENV)
    }),
    resolve({
      browser: true,
      extensions: [".js", ".jsx", ".json"]
    }),
    babel({
      exclude: "node_modules/**"
    }),
    commonjs({
      include: ["node_modules/**"],
      exclude: ["node_modules/process-es6/**"]
    })
  ]
};
