diff --git a/packages/app/next.config.js b/packages/app/next.config.js index dc5dce6028..a142541ae5 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -5,12 +5,7 @@ const LodashModuleReplacementPlugin = require('lodash-webpack-plugin'); const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }); -const withTranspileModules = require('next-transpile-modules')([ - 'd3-geo', - 'd3-array', - 'globby', - 'internmap', -]); +const withTranspileModules = require('next-transpile-modules')(['d3-geo', 'd3-array', 'globby', 'internmap']); const path = require('path'); const { DuplicatesPlugin } = require('inspectpack/plugin'); @@ -59,7 +54,7 @@ const nextConfig = { productionBrowserSourceMaps: true, webpack(config) { - config.optimization.chunkIds = 'size'; + config.optimization.chunkIds = 'named'; config.module.rules.push({ test: /\.svg$/, type: 'asset', @@ -83,15 +78,9 @@ const nextConfig = { ['d3-array', '../../node_modules/d3-array'], ['d3-color', '../../node_modules/d3-scale/node_modules/d3-color'], ['d3-geo', '../../node_modules/d3-geo'], - [ - 'd3-interpolate', - '../../node_modules/d3-scale/node_modules/d3-interpolate', - ], + ['d3-interpolate', '../../node_modules/d3-scale/node_modules/d3-interpolate'], ['react-is', '../../node_modules/react-is'], - [ - 'unist-util-visit-parents', - '../../node_modules/unist-util-visit-parents', - ], + ['unist-util-visit-parents', '../../node_modules/unist-util-visit-parents'], ]; duplicatePackageResolves.forEach(([packageName, resolvedPath]) => { diff --git a/packages/app/src/components/combo-box/combo-box.tsx b/packages/app/src/components/combo-box/combo-box.tsx index cae584b3b4..58c8985354 100644 --- a/packages/app/src/components/combo-box/combo-box.tsx +++ b/packages/app/src/components/combo-box/combo-box.tsx @@ -1,10 +1,4 @@ -import { - Combobox, - ComboboxInput, - ComboboxList, - ComboboxOption, - ComboboxPopover, -} from '@reach/combobox'; +import { Combobox, ComboboxInput, ComboboxList, ComboboxOption, ComboboxPopover } from '@reach/combobox'; import css from '@styled-system/css'; import { matchSorter } from 'match-sorter'; import { useRouter } from 'next/router'; @@ -26,7 +20,6 @@ type TProps