Webpack compatibility
See original GitHub issueHi guys, I’m using your module within webpack but I got this warning.
I didn’t find an open issue
WARNING in ./~/braintree-web/dist/braintree.js
Critical dependencies:
2:423-430 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./~/braintree-web/dist/braintree.js 2:423-430
The problem is that is included only the pre-built file, while I’d need an unminified version of the file.
I gave a look at the #1 issue, can you include the source file now? If not, could you explain me the reason?
Thanks.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:24 (9 by maintainers)
Top Results From Across the Web
To v5 from v4 - webpack
Test webpack 5 compatibility. Try to set the following options in your webpack 4 configuration and check if build still works correctly.
Read more >Webpack - npm
Browser Compatibility. Webpack supports all browsers that are ES5-compliant (IE8 and below are not supported). Webpack also needs Promise ...
Read more >Webpack 5 Adoption - Next.js
Next.js has adopted webpack 5 as the default for compilation. ... opt-out and use webpack 4 to help with backwards compatibility using webpack5:...
Read more >TypeStrong/ts-loader: TypeScript loader for webpack - GitHub
Compatibility. TypeScript: 3.6.3+; webpack: 5.x+ (please use ts-loader 8.x if you need webpack 4 support); node: 12.x+. A full test suite runs each...
Read more >A Guide to Managing Webpack Dependencies - Toptal
The Webpack module bundler processes JavaScript code and all static assets, such as stylesheets, images, and fonts. However, configuring Webpack and its ...
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 FreeTop 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
Top GitHub Comments
@gabro I understand your frustrations and your desire for us to fully open-source
braintree.js
. There is every possibility this is something we may do in the future.Thanks for the feedback.
@kyledetella exactly, the issue is not really about minified or not, rather pre-built or not. Webpack works better (and without warning) when provided with the original source, rather than a bundled version (in this case with browserify).
It would be great to have access to the original source code, making this project really open-source, but if you guys don’t have any plan for it, we’ll settle with the webpack warning, I guess.
Not cool, but oh, we’ll survive.