feat(config): ✨ Add excludeConvertNames in atlas-resource.json#40
feat(config): ✨ Add excludeConvertNames in atlas-resource.json#40izcream wants to merge 3 commits intoabstractFlo:version-3-1-refactorfrom izcream:version-3-1-refactor
Conversation
Atlas have function to convert to default name import from source code. and its convert some legacy npm-module wrong. this config will able to make user decide to convert name import or not
|
Afaik nodeJS 14+ solves cjs imports in ejs by itself, maybe it would be better to completely remove convertNamedImports. |
|
on my node js v14.18.1 and rollup ^2.60.0 axios was compile and work fine. but in atlas if I pass axios to convertNamedImports function it's do not😂 btw if remove this function my issues about import will gone true😁 |
|
thats what i'm talking about, i think node 14+ does not need convertNamedImport anymore because they changed the import behaviour |
|
But we need this on clientside? Can anyone check this? Clientside does not run a node environment. If they can handle as well, we can remove convertNamedImportes, otherwise not ;) |
|
When I try to import axios on client side it was fail to bundle its. Tonight will try without convertNameImport and update result again😅 |
|
Axios will never work on clientside only alt.HttpClient |
yes I know it cant. Just make a test result for abstracFlo comment above 😂 |
|
Update info from Timo and abstractFlo Look like wee don't need Thanks |
|
I don't remove the plugin currently, i will check it by myself is it usefull to remove this. I can't accept this PR, sorry |
|
Ok so can you add ability to make user choice to convertNameImport or not like my fist commit? With this options I can solve import wrong for old npm modules😅 |
|
Currently i have no time doing something related to altas :/ sorry But the time is coming, i am on final stage in my current private project and if this is finished, i will push all my improvements to v3.1 |
|
Thanks for supporting for make v3 release. If you can fix my issues that will easy to me to handle atlas module(no need to fork and fix this myself) edited: The main problem is not whole only this sub function inside Step to reproduce this issues
Hope you and your team can fix this issues soon, Have a nice day :) |

Add config to make user can handle what npm_module don't need to call
convertNamedImportsfunctionI try to import
axios, jsonwebtokeninto atlas and compile I will got warning message on image belowthen I have look up builded/bundle code module
axios, jsonwebtokenwas writeimport 'moduleName';it's should beimport moduleName from 'moduleName';ps. not sure why rollup convert module to
import 'moduleName'because function convertNamedImports was convert to right import syntax