Diego Fernandez
Diego Fernandez
See also the discussion thread here: https://github.com/styled-components/styled-components/issues/3262
I wan't to add an update regarding the cause of the problem and a possible workaround. Styled-components uses multiple NPM entry points: https://github.com/styled-components/styled-components/blob/v5.3.10/packages/styled-components/package.json#L5 The default CommonJS entry point (`main`) is...
Hi @milesj Lerna resolves the versioning, but in my case it also added other issues with `npm-run-all` (https://github.com/lerna/lerna/issues/2145). @alexbrazier @alexindigo because of the issue that I had with Lerna, I...
SVGR allows passing options to Babel. I tried this: .svgrc ```json { "typescript": true, "jsx": {"babelConfig": {"retainLines": true}} } ``` Then: ```shell npx @svgr/cli test.svg ``` I get the output...
> https://babeljs.io/docs/en/options#generatoropts Have you tried setting it as a generator option? > > `{"babelConfig": {generatoropts:{"retainLines": true}}}` Thanks for the suggestion! I tried it, but it didn't work: ```json { "typescript":...
@roni-castro-db thanks! that hack worked for me
The issue appears to be that when switching to `type: module`, the bundler assumes that every `.js` file is an ESM file. However, the CJS version of the code is...