Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/landing-handler.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 * 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 { | import { | ||||
isValidPrimaryIdentityPublicKey, | isValidPrimaryIdentityPublicKey, | ||||
isValidSIWENonce, | isValidSIWENonce, | ||||
} from 'lib/utils/siwe-utils.js'; | } from 'lib/utils/siwe-utils.js'; | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |
Here I mapped a folder to the index.js file within