Created
April 18, 2018 00:25
-
-
Save tmcw/e401c398173b28e8d5627cddeb98b100 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"; | |
import alias from "rollup-plugin-alias"; | |
export default Object.assign(baseConfig, { | |
entry: "index.js", | |
dest: "prettier.js", | |
format: "umd", | |
plugins: [ | |
alias({ | |
[path.resolve("src/common/load-plugins.js")]: path.resolve( | |
"src/common/load-plugins-browser.js" | |
) | |
}), | |
json(), | |
resolve({ preferBuiltins: true, extensions: [".js", ".json"] }), | |
commonjs(), | |
globals() | |
], | |
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