Bogdan Chadkin
Bogdan Chadkin
Rollup optimise `import * as React from 'react'` into `import{createElement as a}from 'react';` which is not the case with default export prop access which may be side effectful. Also it's...
cc @jonschlinkert
Hi, could you send PR?
@alexreardon Awesome! Do you know which browsers support window scroll event with capture?
Alright, I see NamedExoticComponent in latest react types. But it doesn't work because of default import `import React from 'react';` Not recommended by react team anymore. Better use `import *...
Another negative point of default react import is not manglable React.createElement(). Namespace import would be expanded by rollup (tsdx) into `import { createElement } from 'react'` and each call could...
Oh, I got it now. esModuleInterop is required. Thought it doesn't affect types. But anyway named exports rock.
One more request for some kind of dnd builders.
Similar way with kinda automating named exports list ```js import * as draftJs from 'draft-js'; commonjs({ namedExports: { 'draft-js': Object.keys(draftJs) } }) ```
This package is used by material-ui which is distributed only with cjs. Webpack is not able to handle a few cases with cjs/esm interop. There is a solution but Oliver...