Skip to content

Little webpack config improvements#193

Merged
Mortaro merged 2 commits intonullstack:unstable-nextfrom
GuiDevloper:config-improvements
Apr 16, 2022
Merged

Little webpack config improvements#193
Mortaro merged 2 commits intonullstack:unstable-nextfrom
GuiDevloper:config-improvements

Conversation

@GuiDevloper
Copy link
Copy Markdown
Member

Together with each commit description, some notes:

  • Default to cwd() in webpack config:
    In day-to-day and custom environments, the input flag becomes a problem/unpredictable, e.g. when using pnpm the path from config to my project is exotic, and we already depend on polemic cwd() at builders, so.. :)
  • Use Node own pkg-resolve for loaders path:
    We're depending on whatever the webpack internal resolve is, being unpredictable and breaks on custom environments, e.g. pnpm packages and their exotic paths.

In lack of `input` flag webpack just targets the current directory
Some pkgs paths become obscure in some environments, e.g. `pnpm install`, `require.resolve` always finds wherever they are installed
@Mortaro Mortaro merged commit 0803a86 into nullstack:unstable-next Apr 16, 2022
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