From 2c5d32c0117f200b188599d39926e8bfeafe9995 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 17 May 2017 13:26:50 +1000 Subject: webpack.config.js: Mark crypto as external Optional dependency of seedrandom. This makes the web bundle *much* smaller --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 21bc8c4..c54580e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,6 +10,9 @@ module.exports = [ filename: 'fengari.js', library: 'fengari' }, + externals: { + "crypto": "crypto" + }, plugins: [ new webpack.DefinePlugin({ WEB: JSON.stringify(true), @@ -23,6 +26,9 @@ module.exports = [ filename: 'fengari.min.js', library: 'fengari' }, + externals: { + "crypto": "crypto" + }, plugins: [ new BabiliPlugin(), new webpack.DefinePlugin({ -- cgit v1.2.3-70-g09d2