From 8e69310c9a846422eb750fc710d83806d19debe5 Mon Sep 17 00:00:00 2001
From: Paul Kaplan <pkaplan@media.mit.edu>
Date: Tue, 15 Jan 2019 13:58:09 -0500
Subject: [PATCH] Build vernier module using babel preset to make sure it works
 for www

---
 webpack.config.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/webpack.config.js b/webpack.config.js
index d6218176f..985c37a88 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -35,7 +35,11 @@ const base = {
         rules: [{
             test: /\.jsx?$/,
             loader: 'babel-loader',
-            include: [path.resolve(__dirname, 'src'), /node_modules[\\/]scratch-[^\\/]+[\\/]src/],
+            include: [
+                path.resolve(__dirname, 'src'),
+                /node_modules[\\/]scratch-[^\\/]+[\\/]src/,
+                /node_modules[\\/]@vernier[\\/]dist // Vernier build needs to be transpiled for es5
+            ],
             options: {
                 // Explicitly disable babelrc so we don't catch various config
                 // in much lower dependencies.
-- 
GitLab