From d76f6fb495d2edb96cfeb0ab3215b3bdcd0b11da Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Tue, 12 Feb 2019 16:00:55 -0700 Subject: [PATCH] ignore blueprint requires of optional UI framework Fixes #1806 --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 6f800ed4f..3c8f6946d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ const path = require('path'); +const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); const paths = require('./config/paths'); @@ -90,6 +91,11 @@ const baseConfig = [ }), ], }, + plugins: [ + new webpack.IgnorePlugin({ + resourceRegExp: /@blueprintjs\/(core|icons)/, // ignore optional UI framework dependencies + }), + ], }, ]; -- GitLab