Skip to content

Commit 6626f12

Browse files
committedJun 19, 2016
update npm package
1 parent 8a86f93 commit 6626f12

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed
 

‎lib/react-filter-box.js

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/AutoCompletePopup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class AutoCompletePopup {
9090
type:info.type,
9191
hint:this.onPick.bind(this),
9292
render: this.renderHintElement.bind(this)
93-
}
93+
};
9494
}
9595

9696
findLastSeparatorPositionWithEditor(){

‎webpack.component.config.js

+16-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,27 @@ var config = _.assign(commonConfig, {
99
"./src/ReactFilterBox.tsx"
1010
],
1111

12-
externals: {
13-
'react': 'react',
14-
'react-dom': 'react-dom'
12+
externals: {
13+
react: {
14+
root: 'React',
15+
commonjs: 'react',
16+
commonjs2: 'react',
17+
amd: 'react',
18+
},
19+
'react-dom': {
20+
root: 'ReactDOM',
21+
commonjs: 'react-dom',
22+
commonjs2: 'react-dom',
23+
amd: 'react-dom',
24+
},
1525
},
26+
1627

1728
output: {
18-
path: path.join(__dirname, 'dist'),
29+
path: path.join(__dirname, 'lib'),
1930
filename: 'react-filter-box.js',
2031
library: 'react-filter-box',
21-
libraryTarget: "CommonJS"
32+
libraryTarget: 'umd'
2233
},
2334
})
2435

0 commit comments

Comments
 (0)
Please sign in to comment.