Anton Gilgur
Anton Gilgur
> ``` > (typescript) Error: /Users/sinled/dev/Projects/_my/_tmp/test-rushx-tsdx/packages/somelib/src/index.tsx(7,10): semantic error TS2305: Module '"../node_modules/office-ui-fabric-react/lib/Styling"' has no exported member 'mergeStyleSets'. > Error: /Users/sinled/dev/Projects/_my/_tmp/test-rushx-tsdx/packages/somelib/src/index.tsx(7,10): semantic error TS2305: Module '"../node_modules/office-ui-fabric-react/lib/Styling"' has no exported member 'mergeStyleSets'. >...
For reference, I am fairly sure I fixed this upstream in https://github.com/ezolenko/rollup-plugin-typescript2/pull/332, which fixed https://github.com/ezolenko/rollup-plugin-typescript2/issues/234, which is a very similar upstream issue with `pnpm` symlinks. To use that in your...
> This comes with couple of disadvantages described at https://prettier.io/docs/en/integrating-with-linters.html TSDX does use `eslint-config-prettier` so the main disadvantage doesn't apply. > It is also not possible to run prettier on...
> TSDX uses `eslint-plugin-prettier` which is the source of the disadvantages described at https://prettier.io/docs/en/integrating-with-linters.html Yes, I've read that section, but aside from the performance piece, that section is all an...
> It also adds more dependencies to tsdx `eslint-plugin-prettier` is only a single dependency out of the gigantic amount of other deps. It can be impacted by majors, yes, but...
@BeeeQueue you can already configure this in `tsdx.config.js`, similar to how [`immer` used to do](https://github.com/immerjs/immer/blob/4c4feccd4e225d1119780986ba0c1d5ee5f59971/tsdx.config.js#L8): ``` module.exports = { rollup(config, opts) { if (opts.format === 'esm') { config = {...
I also don't think the use-case of "deep imports" will completely make sense for this feature, as, [per another reply in that thread from Rollup's current maintainer](https://twitter.com/lukastaegert/status/1241266937558073344?s=20) (which itself is...
> We don't need this for "deep imports" I was responding to the subject of this issue. There is also #321 that doesn't have this specific use-case. Given that "deep...
> So I've experimented using Immer's config: Ah, my bad I missed the `output.dir` part. I forgot `preserveModules` requires `dir` instead of `file` (#535 is 1.5 months old now, sorry)....
@jimmyn `config.external = (id) => false;` should work. as should `delete config.external`. In full form: `tsdx.config.js`: ```javascript module.exports = { rollup(config) { if (config.output.format === 'umd') { delete config.external; }...