-
Notifications
You must be signed in to change notification settings - Fork 24
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
Improve Code Packaging an Delivery #20
Milestone
Comments
Closed
LGTM! |
Do you want to take care of this? |
pahund
pushed a commit
that referenced
this issue
Jan 8, 2020
Change-Id: Iac624b8f8b024b54af4424e077ca8f7951eea640
pahund
pushed a commit
that referenced
this issue
Jan 16, 2020
Change-Id: Iac624b8f8b024b54af4424e077ca8f7951eea640
pahund
pushed a commit
that referenced
this issue
Jul 3, 2020
Change-Id: Iac624b8f8b024b54af4424e077ca8f7951eea640
pahund
pushed a commit
that referenced
this issue
Jul 3, 2020
* updated nvm config to use current LTS version 12 * Issue #20 - fine tuned webpack build for unpkg CDN distribution * MOVE-12525: changed babel config to fix error with common JS lib * MOVE-12525: fixed babel config * changed name of npm package to react-advertising * Updated all npm package dependencies * Reformatted JS code with latest Prettier settings * Removed Wallaby config
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently (version 2.x.x), there are two ways to include React Prebid in a project:
index-esnext.js
– this is the untranspiled code using ES modules, needs to be run through Babel before it can be usedindex.js
– this is the transpiled version that can be used directly in the browserThe problem with this approach: It is hard to debug the minified code (see issue #18). To solve this, we should provide the transpiled and unminified code per default. Users who want to use
react-prebid
through a CDN should be able to download the transpiled and minified bundle from UNPKG.Requirements
dist
folder, which is not under source control and created on the fly by the webpack builddist
folder:index.js
– transpiled, unminified Common JS bundle, to be imported with arequire
statementindex.js.map
– source map forindex.js
react-prebid.esm.js
– untranspiled, unminified source code, bundled into one file, to be imported as ES module with animport
statementreact-prebid.esm.js.map
– source map forreact-prebid.esm.js
react-prebid.umd.js
– transpiled, unminified UMD bundle, to be incuded in web pages through a script tag, loaded from a CDNreact-prebid.umd.js.map
– source map forreact-prebid.umd
react-prebid.umd.min.js
– transpiled, minified UMD bundle, to be incuded in web pages through a script tag, loaded from a CDNreact-prebid.umd.min.js.map
– source map forreact-prebid.min.umd
package.json
file points to the various bundles:"main": "dist/index.js"
"module": "dist/react-prebid.esm.js"
"unpkg": "dist/redux-toolkit.umd.min.js"
The text was updated successfully, but these errors were encountered: