Niklas Mischkulnig

Results 519 comments of Niklas Mischkulnig

Parcel doesn't have such functionality builtin A PostCSS plugin like https://purgecss.com/plugins/postcss.html might work

You need to enable package exports/imports: https://parceljs.org/features/dependency-resolution/#enabling-package-exports Then putting `#index` in `imports` works

Even if we change Parcel to not import `process` when doing `typeof process`, the second part of `typeof process != "undefined" && process.env && /\bparse\b/.test(process.env.LOG!)` is certainly going to do...

This is the relevant code for the case of `--port ` === `--hmr-port`. https://github.com/parcel-bundler/parcel/blob/2facd5df904b3888774a965a6be0e16248006449/packages/reporters/dev-server/src/ServerReporter.js#L46-L55 https://github.com/parcel-bundler/parcel/blob/2facd5df904b3888774a965a6be0e16248006449/packages/reporters/dev-server/src/HMRServer.js#L89 The HTTP server creation including proxyrc is here (the `server` here becomes `devServer` in HMRServer...

When building webapps, you get much smaller build sizes with scope hoisting. When building libraries, you have to enable it for technical reasons.

Some rust-based operations are optimized to access the FS directly if possible (= no memory fs): https://github.com/parcel-bundler/parcel/blob/dc3d92b0231f8e196761a46baf5bdca657c11fc6/packages/utils/node-resolver-core/src/Wrapper.js#L87 https://github.com/parcel-bundler/parcel/blob/dc3d92b0231f8e196761a46baf5bdca657c11fc6/packages/core/package-manager/src/NodePackageManager.js#L81 Apart from that, we mostly use the MemoryFS for the tests. So...

I've written a comment here: https://github.com/parcel-bundler/parcel/issues/9729#issuecomment-2124853385

`.parcelrc` only specifies which plugins you want to use. These CLI options didn't change

It's using a Algolia npm search API: https://github.com/parcel-bundler/website/blob/v2/src/plugin-browser/hooks.js I think that's this here: https://github.com/algolia/npm-search So it's a black box to us as well 🤷

Yeah, it's here: https://yarnpkg.com/search?q=parcel-transformer+sprite And that is using the exact same endpoint. So one of the filters on https://github.com/parcel-bundler/website/blob/v2/src/plugin-browser/hooks.js must be the problem