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]: Can not bundle module with require from createRequire #762

Open
fi3ework opened this issue Feb 18, 2025 · 0 comments
Open

[Bug]: Can not bundle module with require from createRequire #762

fi3ework opened this issue Feb 18, 2025 · 0 comments
Labels
Rspack Rspack related issue

Comments

@fi3ework
Copy link
Member

fi3ework commented Feb 18, 2025

Version

latest

Details

Can not bundle files with createRequire:

import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const data = require('./data.js')

export default data

Lacks of porting https://redirect.github.com/webpack/webpack/pull/15579 in Rspack.

Reproduce link

N/A

Reproduce Steps

N/A

@Timeless0911 Timeless0911 added the Rspack Rspack related issue label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rspack Rspack related issue
Projects
None yet
Development

No branches or pull requests

2 participants