From 73d538c7cf3732c199687fc75c7b0b206bee4e7a Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sun, 22 May 2022 12:40:34 -0700 Subject: [PATCH] Modularize imports of hero icons in compiler (#292) --- web/next.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/next.config.js b/web/next.config.js index 5a28778c..917d72b3 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -7,6 +7,13 @@ module.exports = { externalDir: true, optimizeCss: true, modularizeImports: { + '@heroicons/react/solid/?(((\\w*)?/?)*)': { + transform: '@heroicons/react/solid/{{ matches.[1] }}/{{member}}', + }, + '@heroicons/react/outline/?(((\\w*)?/?)*)': { + transform: '@heroicons/react/outline/{{ matches.[1] }}/{{member}}', + }, + lodash: { transform: 'lodash/{{member}}', },