-
Notifications
You must be signed in to change notification settings - Fork 268
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
requireEnsure override #159
Labels
❓ question
Further information is requested
Comments
Hi @taddj, you should be able to resolve your issue with something like this: const { override, addDecoratorsLegacy } = require("customize-cra");
const enableRequireEnsure = () => config => {
config.output.globalObject = 'this'
config.module.rules[0].parser.requireEnsure = true
return config
}
module.exports = override(
addDecoratorsLegacy(),
enableRequireEnsure(),
); Can you let me know if that fixes your issue? |
That worked! |
Awesome! Glad that worked for you. I've added you to our contributors list for asking a question! Thanks for taking part :) |
I had this same issue. Thank you @with-heart 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to accomplish this with customize-cra? I am trying to fix an issue as described here wojtekmaj/react-pdf#280
The text was updated successfully, but these errors were encountered: