We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
library: "module"
// index.js export const a = 1; export const b = 2;
// rspack.config.js module.exports = { entry: "./index.js`, mode: "development", devtool: false, output: { library: { type: "module" }, } experiments: { outputModule: true }, }
Rspack's startup:
var __webpack_exports__ = __webpack_require__("./index.js");
webpack's startup
var __webpack_exports__a = __webpack_exports__.a; var __webpack_exports__b = __webpack_exports__.b; export { __webpack_exports__a as a, __webpack_exports__b as b };
The text was updated successfully, but these errors were encountered:
Result
bvanjoi
Successfully merging a pull request may close this issue.
Rspack's startup:
webpack's startup
The text was updated successfully, but these errors were encountered: