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

support more import.meta property like import.meta.webpack #4350

Closed
Tracked by #4327
ahabhgk opened this issue Oct 17, 2023 · 1 comment · Fixed by #7229
Closed
Tracked by #4327

support more import.meta property like import.meta.webpack #4350

ahabhgk opened this issue Oct 17, 2023 · 1 comment · Fixed by #7229
Labels
stale team The issue/pr is created by the member of Rspack.

Comments

@ahabhgk
Copy link
Collaborator

ahabhgk commented Oct 17, 2023

// Port from https://github.com/webpack/webpack/blob/main/lib/dependencies/ImportMetaPlugin.js
// TODO:
// - scan `import.meta.webpack`
// - scan `import.meta.url.indexOf("index.js")`
// - evaluate expression. eg `import.meta.env && import.meta.env.xx` should be `false`
// - add warning for `import.meta`

  • webpack-test/cases/esm/import-meta
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant