diff --git a/webpack.config.js b/webpack.config.js
index 5853b51734d26e79e529d056e118958350ea28c1..cf06a0d4259403392ea3a3d2d4eadeb48ebca7a2 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,5 +1,6 @@
 const publicPath = '/dist';
 
+const path = require('path');
 const webpack = require('webpack');
 
 const config = {
@@ -46,7 +47,10 @@ const config = {
       },
       {
         test: /\.js$/, // Check for all js files
-        exclude: /node_modules/,
+        include: [
+          path.resolve(__dirname, './src'),
+          path.resolve(__dirname, 'node_modules/@material'),
+        ],
         use: [{
           loader: 'babel-loader',
           options: {