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" },