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
"Avoid using any special characters in your aliases as some may be used by Parcel and others by 3rd party tools or extensions. For example:
~ used by Parcel to resolve [tilde paths](https://en.parceljs.org/module_resolution.html#~-tilde-paths).
@ used by npm to resolve npm organizations."
We have lots of imports in our codebase like "import '@static/js/light/jquery.modal', where @static resolves to a path in our monorepo. It sounds as if I need to write a custom resolver in order to implement this in parcel. I started writing this, but I just want to replace @static with the correct path, and then pass the corrected path on to the default bundler. Is there a way to call the default bundler programatically?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://en.parceljs.org/module_resolution.html says
"Avoid using any special characters in your aliases as some may be used by Parcel and others by 3rd party tools or extensions. For example:
We have lots of imports in our codebase like "import '@static/js/light/jquery.modal', where @static resolves to a path in our monorepo. It sounds as if I need to write a custom resolver in order to implement this in parcel. I started writing this, but I just want to replace @static with the correct path, and then pass the corrected path on to the default bundler. Is there a way to call the default bundler programatically?
Beta Was this translation helpful? Give feedback.
All reactions