Karl Horky
Karl Horky
Ok, then I'll just leave it open here.
## Workaround Configure the `DefinePlugin` to alias `import.meta.dirname` to `__dirname`, similar to https://github.com/webpack/webpack/issues/1599#issuecomment-186620333: ```js /** @type {import("next").NextConfig} */ const nextConfig = { reactStrictMode: true, webpack: ( config, { buildId, dev,...
@alexander-akait if you haven't gotten around to implementing yet, what do you think about me creating a tracking issue in the webpack repo?
Ah wait, looks like there maybe is one already...? Looks like the issue started as some other topic, but now is about general `import.meta.dirname` and `import.meta.filename` support: - https://github.com/webpack/webpack/issues/18320
Looks like this PR closes it: - https://github.com/webpack/webpack/pull/20050 @alexander-akait will this be released in the next minor? - next minor: [`[email protected]`](https://github.com/webpack/webpack/releases/tag/v5.103.0)
@samcx the Next.js team may also want to consider switching from `eslint-plugin-import` to [`eslint-plugin-import-x`](https://www.npmjs.com/package/eslint-plugin-import-x), due to [incompatibilities and other multiple issues and missing features](https://x.com/karlhorky/status/1792500813320864023) I mentioned something similar in [my...
> we cannot do a clean ship of this until certain plugins add support for ESLint v9 @samcx just as a note (probably you've already seen the tweet thread), there...
## Workaround Aliases for `.bash_profile` or `.zshrc` ```bash alias pnpmpatch="pnpm patch --edit-dir ./node_modules/.pnpm-patch" alias pnpmpatch-commit="pnpm patch-commit ./node_modules/.pnpm-patch && rm -r ./node_modules/.pnpm-patch" ``` Then usage is a bit simpler: ```bash pnpmpatch...
@zkochan @await-ovo @btea what are your thoughts on this feature proposal? (I can't remember why this was marked as a bug, maybe miscategorized) I think it would be a good...
Default edit dir is now `node_modules/.pnpm_patches/pkg[@version]` in [`[email protected]`](https://github.com/pnpm/pnpm/releases/tag/v9.7.0), amazing 🎉 Thanks @KSXGitHub and @zkochan 🙌