Skip to content
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

migrate basic group #1837

Merged
merged 6 commits into from
Oct 3, 2020
Merged

migrate basic group #1837

merged 6 commits into from
Oct 3, 2020

Conversation

anshumanv
Copy link
Member

What kind of change does this PR introduce?
refactor

Did you add tests for your changes?
Yeaaa

If relevant, did you update the documentation?
No need

Summary

  • migrate basic group out of group design

Does this PR introduce a breaking change?
Nayyy

Other information

@anshumanv anshumanv requested a review from a team as a code owner September 25, 2020 17:01
}
});
}
return configPathExists ? predefinedConfigPath : configPath;
Copy link
Member

@alexander-akait alexander-akait Sep 25, 2020

Choose a reason for hiding this comment

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

To be honestly it is wrong, webpack uses resolver to resolve js/ts/cjs/mjs, even css/scss/less and other extensions, I think It should be removed

Copy link
Member

Choose a reason for hiding this comment

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

I think all test will be passed without it

Copy link
Member Author

Choose a reason for hiding this comment

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

makes sense, let's simply do path.resolve

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah so we don't even need to do path.resolve since core does this already for relative paths, we just need to pass the entry

@anshumanv
Copy link
Member Author

@evilebottnawi PTAL if this is what you had in mind

@anshumanv
Copy link
Member Author

CI broken with webpack@next 😞

@anshumanv
Copy link
Member Author

@snitin315 can you test the issue with this branch now?

@alexander-akait
Copy link
Member

Yes, because we need remove all unnecessary stuff, there are a lot of problems with this due bad code from history

can you look at the problem?

@alexander-akait
Copy link
Member

webpack/webpack#11553

@alexander-akait
Copy link
Member

We need check bug from webpack-cli or regression from webpack

@anshumanv
Copy link
Member Author

@evilebottnawi I think regression in webpack rc-1, works fine with rc-0

Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

Can you add a test case for a non-js entry point too?

@anshumanv
Copy link
Member Author

Done

@anshumanv
Copy link
Member Author

/cc @webpack/cli-team

Comment on lines +210 to +213
if (existsSync(rootIndexPath)) {
defaultEntry = './index.js';
} else {
defaultEntry = './src/index.js';
Copy link
Member

Choose a reason for hiding this comment

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

Do we have tests for both of the default entries i.e, ./index.js and ./src/index.js ?

Copy link
Member

Choose a reason for hiding this comment

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

This should be solved on webpack side, here invalid solution, because index can have cjs/ts/mjs and etc extensions

Copy link
Member Author

Choose a reason for hiding this comment

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

Need to change a bunch of tests again because of current behaviour, let's fix this separately? Here's the issue for any discussion - #1852

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

/cc @webpack/cli-team

@webpack-bot
Copy link

@anshumanv Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@evilebottnawi Please review the new changes.

@snitin315 snitin315 merged commit 6f49e96 into webpack:next Oct 3, 2020
@anshumanv anshumanv deleted the ref/basic-group branch October 3, 2020 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants