Giter Club home page Giter Club logo

Comments (6)

pahund avatar pahund commented on September 12, 2024

I'm not sure if I quite understand what you want to do.

React Prebid provides a packaged version that has been run through babel (index.js) as well as a non-packaged ES6 version (index-esnext.js) which you can use if you prefer to transpile the code through your own Babel/webpack setup.

Are you proposing to add another bundle that has not been minified?

from react-advertising.

mattcolman avatar mattcolman commented on September 12, 2024

our webpack config is not set up to handle index-esnext.js. We don't want to transpile any third party node modules. So instead we use your index.js, however because it's minified it makes it hard to debug the code. For example using react dev tools I don't see the component names and can't set any breakpoints.

from react-advertising.

mattcolman avatar mattcolman commented on September 12, 2024

What's your intended use for index.js? Is this for installation via a script tag? If it's meant for npm installation then I think unminified code is always preferable?

from react-advertising.

pahund avatar pahund commented on September 12, 2024

Hi Matt,

your feature request is valid, I've done some research and looked at how other projects are doing this. I've created a separate issue that outlines how I think this should be solved, feel free to provide feedback:

  • #20 – Improve Code Packaging and Delivery

We will have to do a major release for this, as people may rely on the default JS bundle to be minified. I cannot promise any delivery date.

If you want to take care of this in a pull request, I would be very grateful! 😀

from react-advertising.

pahund avatar pahund commented on September 12, 2024

@mattcolman
I've published a beta release with your changes: 3.0.0-beta.0

Can you please check if this fixes your issue and confirm? Then I'll release a final version after some more testing on my end.

from react-advertising.

mattcolman avatar mattcolman commented on September 12, 2024

yep works for me! Thanks!

from react-advertising.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.