question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack compatibility

See original GitHub issue

Hi 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:closed
  • Created 8 years ago
  • Reactions:4
  • Comments:24 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
kyledetellacommented, Jul 7, 2015

@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.

4reactions
gabrocommented, Jul 7, 2015

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found