Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: compatibility plugin not works well #6909

Closed
bvanjoi opened this issue Jun 25, 2024 · 0 comments · Fixed by #7079
Closed

[Bug]: compatibility plugin not works well #6909

bvanjoi opened this issue Jun 25, 2024 · 0 comments · Fixed by #7079
Labels
bug Something isn't working team The issue/pr is created by the member of Rspack.

Comments

@bvanjoi
Copy link
Collaborator

bvanjoi commented Jun 25, 2024

System Info

@rspack/core: "0.7.4"

Details

// a.js
module.exports = "a"
// index.js
function f(__webpack_require__) {
  require('./a.js');
  __webpack_require__ + 1
}

expect after npx rspack build:

function f(__nested_webpack_require_11__) {
  __webpack_require__("./src/a.js");
  __nested_webpack_require_11__ + 1
}

actually:

function f(__webpack_require__) {
  __webpack_require__("./src/a.js");
  __webpack_require__ + 1
}

Reproduce link

No response

Reproduce Steps

npx rspack build

@bvanjoi bvanjoi added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jun 25, 2024
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jun 25, 2024
@h-a-n-a h-a-n-a removed the pending triage The issue/PR is currently untouched. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants