You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebStorm (and I am sure other IDEs) completely loses its ability index the source, hence to "Go To Definition", "Auto Import" etc - which is highly annoying and costs productivity.
A simple way to fix it would be to add a:
export * from './index.optimized'
This index.optimized.js will basically be a "dump" of the output of the module dynamically generated:
export Header from './organisms/Header'
export Footer from './organisms/Footer'
..
..
So importing it will change nothing. This file can quite easily be generated, and should be generated on instantiation of the arc-generator when working in dev mode.
What do you think?
The text was updated successfully, but these errors were encountered:
It had had an index.js file on each component type folder exporting all components inside that folder (at that time we still didn't have generator-arc so adding components was a pain in the ass).
I'm aware of this problem with tooling and I find your solution very elegant. We just need to improve generator-arc to handle this.
An issue I have encountered is that because of arc's dynamic style of importing:
WebStorm (and I am sure other IDEs) completely loses its ability index the source, hence to "Go To Definition", "Auto Import" etc - which is highly annoying and costs productivity.
A simple way to fix it would be to add a:
This index.optimized.js will basically be a "dump" of the output of the module dynamically generated:
So importing it will change nothing. This file can quite easily be generated, and should be generated on instantiation of the arc-generator when working in dev mode.
What do you think?
The text was updated successfully, but these errors were encountered: