Skip to content

Browser build causes webpack warning by using require.extensions #6656

@nickserv

Description

@nickserv

Environments:

  • Prettier Version: 1.18.2
  • Running Prettier via: Browser API
  • Runtime: Node.js 12.11.1 (via webpack)
  • Operating System: macOS

Steps to reproduce:

https://github.com/nickmccurdy/prettier-chrome-extension/tree/bundle-with-webpack

Expected behavior:

No warnings

Actual behavior:

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127549-127567
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127570-127588
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127607-127625
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions