From 4d85aa29fad2427371c17e5d685336b1a071bb79 Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Sun, 3 Mar 2019 12:30:33 +0800 Subject: [PATCH] Build: bundle espree (fixes eslint/eslint.github.io#546) --- webpack.config.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 134a657e758..e02291025ab 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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" },