Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created April 17, 2018 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/52cfa184802fca4e7652a0ecce6e3808 to your computer and use it in GitHub Desktop.
Save tmcw/52cfa184802fca4e7652a0ecce6e3808 to your computer and use it in GitHub Desktop.
import path from "path";
import baseConfig from "./rollup.base.config.js";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import globals from "rollup-plugin-node-globals";
import json from "rollup-plugin-json";
export default Object.assign(baseConfig, {
entry: "index.js",
dest: "prettier.js",
format: "umd",
plugins: [
json(),
resolve({ preferBuiltins: true, extensions: [".js", ".json"] }),
commonjs(),
globals()
],
paths: {
[path.resolve("src/main/node_options.js")]: path.resolve(
"src/main/options.js"
)
},
useStrict: false,
moduleName: "prettier",
external: ["assert", "fs", "module"]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment