Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Do not publish library as minified browserify bundle #28

Closed
nwronski opened this issue Oct 14, 2016 · 0 comments
Closed

Do not publish library as minified browserify bundle #28

nwronski opened this issue Oct 14, 2016 · 0 comments
Assignees

Comments

@nwronski
Copy link
Contributor

Instead of publishing this module on npm as a browserified and minified bundle, I want to publish the ES2015 code in src/ and the transpiled ES5 code in lib/ and leave it up to the end user to decide if they want to browserify or minify the library.

If the stream transform stuff makes it into v1.0.0 along with these changes then this would also allow a shim file to be specified so that the node stream library isn't included in a browserified version of this module. The configuration would be defined in package.json as:

{
  "map": {
    "./lib/streaming.js": {
      "browser": "./lib/streaming-shim.js"
    }
  }
}
@nwronski nwronski self-assigned this Oct 14, 2016
@nwronski nwronski added this to the Release v1.0.0 Final milestone Oct 14, 2016
nwronski added a commit that referenced this issue Oct 15, 2016
Also, clean up demo bundling setup and get rid of babelify
development dependency.
nwronski added a commit that referenced this issue Oct 16, 2016
nwronski added a commit that referenced this issue Oct 17, 2016
Defined as "browser" property in package.json, which is
recognized by jspm and browserify, among others., but the main
for the module is still the unbundled files in lib/.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant