Skip to content

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

@ahabhgk

Description

@ahabhgk

// 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleteamThe issue/pr is created by the member of Rspack.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions