Amin Ya

Results 1114 comments of Amin Ya

The build still fails with the same error on 2.0.0-nightly.1162 https://github.com/aminya/patha/pull/9

I am facing a similar error. It seems re-exporting Node's built-in modules fails silently. Here is the reproduction: ``` ReferenceError: $3b34b48be461ec36$re_export$delimiter is not defined ``` https://github.com/aminya/setup-cpp/runs/7944460774?check_suite_focus=true#step:7:1496 I tried to reproduce...

Which option specifies that the target is commonjs? This line should be replaced with something like: ```js filename = ifTargetCommonjs ? builtin.replace(/^node:/, "") : builtin; ``` https://github.com/parcel-bundler/parcel/blob/f2d0a3a27d6e493b23ddc2edbc8a4c0053ff34ab/packages/utils/node-resolver-core/src/NodeResolver.js?rgh-link-date=2022-05-26T07%3A12%3A32Z#L273

Found a workaround using Babel using `@upleveled/babel-plugin-remove-node-prefix`. Add this to the babel config, and it should be transformed automatically: babel.config.json ```json { "plugins": ["@upleveled/babel-plugin-remove-node-prefix"], "sourceMap": "inline" } ```

This command can be run after Parcel build: ```shell cross-env NODE_ENV=production babel ./dist/ --out-dir ./dist --source-maps true --plugins @upleveled/babel-plugin-remove-node-prefix --compact --no-babelrc ``` Unfortunately, Parcel doesn't run babel on the dependencies....

I noticed that this also doesn't work when targeting the browser. I expect Parcel use the web polyfil for such dependencies, but it instead errors out.

For me, on native Windows, path autocomplete is usually slow for the first time (~2-3 seconds). It seems that some module is being loaded when autocomplete happens for the first...

I also have the same issue. `collapseGroups` breaks the transparent svgs that have multiple groups. This plugin should be disabled in the default preset.

Caused by `collapseGroups`: Before ![Before](https://user-images.githubusercontent.com/16418197/191452264-3670d7bf-5f89-4cdf-9020-97d8c4ebde83.svg) After ![After](https://user-images.githubusercontent.com/16418197/191452447-14f4f856-a450-413c-8b0d-1c3a36d88dd8.svg)