Skip to content
Browse files

Build: bundle espree (fixes eslint/ (#11467)

* Build: bundle espree (fixes eslint/

* Update webpack.config.js

Co-Authored-By: aladdin-add <>

* Chore: add babel-polyfill
  • Loading branch information...
aladdin-add authored and not-an-aardvark committed Mar 5, 2019
1 parent 458053b commit fe1a892f85b09c3d2fea05bef011530a678a6af5
Showing with 6 additions and 3 deletions.
  1. +6 −3 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"]

This comment has been minimized.


aladdin-add Mar 5, 2019

Author Member

there is room to opt here, I think:

  • set external: { espree: "./build/espree.js"}, to avoid loading a different js bundle.
  • separate @babel/polyfill to avoid cache invalidations.
output: {
filename: "eslint.js",
library: "eslint",
filename: "[name].js",
library: "[name]",
libraryTarget: "umd",
globalObject: "this"

0 comments on commit fe1a892

Please sign in to comment.
You can’t perform that action at this time.