Skip to content

Configure module-resolver plugin #1246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2021
Merged

Configure module-resolver plugin #1246

merged 3 commits into from
Apr 1, 2021

Conversation

ethanshar
Copy link
Collaborator

@ethanshar ethanshar commented Apr 1, 2021

Description

POC for using babel-plugin-module-resolver package.
It allows us to create aliases to long relative paths (eg, ../../style, ../../helpers, etc..)
Instead we can just import from our predefined aliases (eg. style, helpers, etc...)

In this PR I just made couple of changes in Button code to test the usage of this plugin.
I'd like to give it some time and see that it integrates well in private uilib and in One App.
If we won't have any complains or issues I'll fully integrate this plugin

Changelog

Use internally babel-plugin-module-resolver for resolving relative paths

@ethanshar ethanshar marked this pull request as ready for review April 1, 2021 10:45
@ethanshar ethanshar requested a review from lidord-wix April 1, 2021 10:46
@@ -1,28 +1,5 @@
{
"compilerOptions": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need the compilerOptoins anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope,
You can see that I now extends our base tsconfig.json file that already contains the relevant compilerOptions
"extends": "./tsconfig",

@lidord-wix lidord-wix merged commit f9a5871 into master Apr 1, 2021
@ethanshar ethanshar deleted the infra/moduleResolver branch July 26, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants