Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
Merge pull request #7 from caseyWebb/fix-umd
Browse files Browse the repository at this point in the history
Fix browser global `ko` reference
  • Loading branch information
caseyWebb committed Sep 3, 2015
2 parents 8f6fda0 + 4a7d9f0 commit e594931
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "ko-component-router",
"main": "ko-component-router.js",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "https://github.com/caseyWebb/ko-component-router",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion dist/ko-component-router.js
Expand Up @@ -6,7 +6,7 @@
else if(typeof exports === 'object')
exports["ko-component-router"] = factory(require("knockout"));
else
root["ko-component-router"] = factory(root["knockout"]);
root["ko-component-router"] = factory(root["ko"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down
2 changes: 1 addition & 1 deletion dist/ko-component-router.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ko-component-router",
"version": "2.1.1",
"version": "2.1.2",
"description": "Component-based routing for KnockoutJS",
"homepage": "https://github.com/caseyWebb/ko-component-router",
"bugs": {
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.js
Expand Up @@ -9,6 +9,11 @@ module.exports = {
},

externals: {
'knockout': 'knockout'
'knockout': {
root: 'ko',
commonjs: 'knockout',
commonjs2: 'knockout',
amd: 'knockout'
}
}
}

0 comments on commit e594931

Please sign in to comment.