Created
April 17, 2018 23:49
-
-
Save tmcw/52cfa184802fca4e7652a0ecce6e3808 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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