Wei

Results 290 comments of Wei

The template is now generated with optional tools, and the name should be changed to `pnpm create rslib --template "[react]-[]-js" --dir my-lib2`. Yes, the name is ugly. We might, should...

reproduction: https://github.com/fi3ework-reproduction/rspack-6293

A temporary solution is to alias bare import to the entry file, but can't handle complex cases like exports field.

That's a good point, without `exports`, we're safe to do so. When `exports` is provided, user could manually adding alias to force override the spec behaviour.

i don't think this is a very important requirement. to reduce complexity, i will close this PR until users need it and initiate a discussion again.

What's the version of typescript and eslint in your project?

@ahabhgk I found that https://github.com/web-infra-dev/rspack/pull/8556 is also implementing `chunkGraph.getModuleId` which is implemented in this PR. And Rslib relies on `getResolve` function to handle external paths. I'm not sure if it's...

Feeling like we really need `getResolve` param in function external type.

> Thanks for creating that! > > I forgot to mention I had `'npm-component-es2017'` configured as the `buildPreset` in `modern.config.ts`. Running your project with that change results in a reproduction....