Skip to content

Commit

Permalink
fix browserify and supply alternative unpkg entry point (closes #606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Sep 11, 2018
1 parent 7fb104b commit 99c95e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dist: dist/debug.js dist/test.js
.INTERMEDIATE: dist/debug.es6.js
dist/debug.es6.js: src/*.js
@mkdir -p dist
browserify --standalone debug $< > $@
browserify --standalone debug . > $@

dist/debug.js: dist/debug.es6.js
@mkdir -p dist
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"xo": "^0.23.0"
},
"main": "./src/index.js",
"browser": "./dist/debug.js"
"browser": "./src/browser.js",
"unpkg": "./dist/debug.js"
}

1 comment on commit 99c95e3

@bertho-zero
Copy link

@bertho-zero bertho-zero commented on 99c95e3 Dec 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit breaks usage with webpack: https://webpack.js.org/configuration/resolve/#resolve-mainfields

main should be babelified version.
browser should be babelified version.
unpkg should be babelified version.
module should be babelified version, with ES modules.
jsnext:main should be babelified version, with ES modules.

Please sign in to comment.