Note: This article was originally written for my personal blog. I am republishing it here for the DEV community.
Maintaining medium to large pro...
For further actions, you may consider blocking this person and/or reporting abuse
Did you get this to work properly with webpack 4 and production build mode? When i tried this recently webpack failed to notice that these imports were in use and removed them from the production build.
That is a really weird case scenario. I didn't have any issues with the latest version of Next.js, which should be using latest Webpack as well. Are you using
babel-preset-env
and Node v8 or newer?