Skip to content

Commit 68ebd4c

Browse files
committed
fix(bundle): fix UMD build and change exported name
changes the exported name to window.UIRouterReact closes #4
1 parent e67532b commit 68ebd4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var config = {
1010
path: path.resolve(__dirname, "_bundles"),
1111
filename: "[name].js",
1212
libraryTarget: "umd",
13-
library: "ui-router-react",
13+
library: "UIRouterReact",
1414
umdNamedDefine: true
1515
},
1616
resolve: {
@@ -36,7 +36,7 @@ var config = {
3636
configFileName: 'tsconfig.webpack.json'
3737
},
3838
externals: {
39-
"react": { root: 'react', amd: 'react', commonjs2: 'react', commonjs: 'react' }
39+
"react": { root: 'React', amd: 'react', commonjs2: 'react', commonjs: 'react' }
4040
}
4141
};
4242

0 commit comments

Comments
 (0)