Browser build causes webpack warning by using require.extensions
See original GitHub issueEnvironments:
- 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
How to Prevent Webpack Error after npm Install?
The reason for this is that it seems that forking is built-in for Webpack >= 3.0.0 ... the new ForkCheckerPlugin() statement (this time...
Read more >Module Methods - webpack
This section covers all methods available in code compiled with webpack. When using webpack to bundle your application, you can pick from a...
Read more >How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >How to transpile ES modules with webpack and Node.js
ES modules (ESM) are the recommended way for writing code for both Node.js and the browser. Currently, ES modules are supported by all...
Read more >JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module ... systems like RequireJS, and more recently Webpack and Babel)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are working hard on the 1.19! As soon as possible 😃
Maybe today.