We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@parcel/transformer-js
require
node_modules
importing nearly any package from NPM results in complaints about their use of require:
import
@parcel/transformer-js: Conditional or non-top-level `require()` call. This causes the resolved module and all dependencies to be wrapped. node_modules/youtube-player/node_modules/debug/src/debug.js:14:20 13 | exports.enabled = enabled; > 14 | exports.humanize = require('ms'); > | ^^^^^^^^^^^^^ 15 | 16 | /** 📝 Learn more: https://parceljs.org/features/scope-hoisting/#avoid-conditional-require()
N/A
console should only show warnings about my own code or about configuration errors
warning spam in console for no good reason
NPM packages should be ignored as I can't control the code in them
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 bug report
import
ing nearly any package from NPM results in complaints about their use ofrequire
:🎛 Configuration (.babelrc, package.json, cli command)
N/A
🤔 Expected Behavior
console should only show warnings about my own code or about configuration errors
😯 Current Behavior
warning spam in console for no good reason
💁 Possible Solution
NPM packages should be ignored as I can't control the code in them
🌍 Your Environment
The text was updated successfully, but these errors were encountered: