Skip to content

Commit

Permalink
Build: bundle espree (fixes eslint/espree#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Mar 3, 2019
1 parent b00a5e9 commit 77852ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions webpack.config.js
Expand Up @@ -2,10 +2,13 @@

module.exports = {
mode: "none",
entry: ["@babel/polyfill", "./lib/linter.js"],
entry: {
eslint: ["@babel/polyfill", "./lib/linter.js"],
espree: ["./node_modules/espree/espree.js"]
},
output: {
filename: "eslint.js",
library: "eslint",
filename: "[name].js",
library: "[name]",
libraryTarget: "umd",
globalObject: "this"
},
Expand Down

0 comments on commit 77852ef

Please sign in to comment.