Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/website-responders.js
// @flow | // @flow | ||||
import html from 'common-tags/lib/html'; | import html from 'common-tags/lib/html/index.js'; | ||||
ashoat: Here I mapped a folder to the `index.js` file within | |||||
import type { $Response, $Request } from 'express'; | import type { $Response, $Request } from 'express'; | ||||
import fs from 'fs'; | import fs from 'fs'; | ||||
import _keyBy from 'lodash/fp/keyBy.js'; | import _keyBy from 'lodash/fp/keyBy.js'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
// eslint-disable-next-line import/extensions | |||||
ashoatAuthorUnsubmitted Done Inline ActionsHere I added an eslint-disable. When I tried to map this to a file, Webpack 5 became unhappy that the file was not specified in exports in react-dom's package.json. I tried Googling but couldn't find a quick solution. Ultimately the unqualified import works fine with Webpack 5 so we're keeping that ashoat: Here I added an `eslint-disable`. When I tried to map this to a file, Webpack 5 became unhappy… | |||||
import ReactDOMServer from 'react-dom/server'; | import ReactDOMServer from 'react-dom/server'; | ||||
import { promisify } from 'util'; | import { promisify } from 'util'; | ||||
import { baseLegalPolicies } from 'lib/facts/policies.js'; | import { baseLegalPolicies } from 'lib/facts/policies.js'; | ||||
import { daysToEntriesFromEntryInfos } from 'lib/reducers/entry-reducer.js'; | import { daysToEntriesFromEntryInfos } from 'lib/reducers/entry-reducer.js'; | ||||
import { freshMessageStore } from 'lib/reducers/message-reducer.js'; | import { freshMessageStore } from 'lib/reducers/message-reducer.js'; | ||||
import { mostRecentlyReadThread } from 'lib/selectors/thread-selectors.js'; | import { mostRecentlyReadThread } from 'lib/selectors/thread-selectors.js'; | ||||
import { mostRecentMessageTimestamp } from 'lib/shared/message-utils.js'; | import { mostRecentMessageTimestamp } from 'lib/shared/message-utils.js'; | ||||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |
Here I mapped a folder to the index.js file within