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

Document webpack change: Disable compile time evaluation of import.meta.url #6087

Closed
webpack-bot opened this issue Apr 8, 2022 · 0 comments · Fixed by #6103
Closed

Document webpack change: Disable compile time evaluation of import.meta.url #6087

webpack-bot opened this issue Apr 8, 2022 · 0 comments · Fixed by #6103
Assignees

Comments

@webpack-bot
Copy link

A pull request by @pavelsavara was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#15246


Problem

Current webpack 5 evaluates import.meta.url to file://some/path/to/source of the build machine.

Fixes webpack/webpack#14445

Proposed changes

add new parser setting importMeta - enable/disable import.meta parsing

module.exports = {
  module: {
    parser: {
      javascript : { importMeta: false }
    }
  }
};

Does this PR introduce a breaking change?
No

What needs to be documented once your changes are merged?

New parser.javascript option importMeta - enable/disable import.meta parsing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants