rslib icon indicating copy to clipboard operation
rslib copied to clipboard

[Bug]: RawModule doesn't implement for module concatenation

Open fi3ework opened this issue 1 year ago • 3 comments

Version

N/A

Details

https://github.com/web-infra-dev/rslib/pull/143/commits/6b7ba677740c84a04eb481f046ed6eb0df3a601c

The output e2e/cases/resolve/__snapshots__/index.test.ts.snap didn't go through concatenated logic.

Reproduce link

https://github.com/web-infra-dev/rslib/pull/143/commits/6b7ba677740c84a04eb481f046ed6eb0df3a601c

Reproduce Steps

N/A

fi3ework avatar Aug 30 '24 04:08 fi3ework

~~Closed as we already force concatenate modules in modern-module.~~

fi3ework avatar Oct 15 '24 14:10 fi3ework

Update

case path: tests/integration/resolve/false

Timeless0911 avatar Jun 11 '25 07:06 Timeless0911

Current output

import { __webpack_require__ } from "./runtime.js";
__webpack_require__.add({
    "?b5d4": function() {}
});
const util_ignored_ = __webpack_require__("?b5d4");
var util_ignored__default = /*#__PURE__*/ __webpack_require__.n(util_ignored_);
console.log('foo:', util_ignored__default());
console.log('bar: ', "bar");

Timeless0911 avatar Oct 30 '25 08:10 Timeless0911