From fe1a892f85b09c3d2fea05bef011530a678a6af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Tue, 5 Mar 2019 10:29:57 +0800 Subject: [PATCH] Build: bundle espree (fixes eslint/eslint.github.io#546) (#11467) * Build: bundle espree (fixes eslint/eslint.github.io#546) * Update webpack.config.js Co-Authored-By: aladdin-add * Chore: add babel-polyfill --- webpack.config.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 134a657e758..4ba329837f4 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: ["@babel/polyfill", "espree"] + }, output: { - filename: "eslint.js", - library: "eslint", + filename: "[name].js", + library: "[name]", libraryTarget: "umd", globalObject: "this" },