Skip to content

Commit 2ad86c6

Browse files
committed
Add react-dom to external dependency
1 parent fbccfa3 commit 2ad86c6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
# Matches multiple files with brace expansion notation
14+
# Set default charset
15+
[*.js]
16+
indent_style = space
17+
indent_size = 4
18+
19+
[{package.json}]
20+
indent_style = space
21+
indent_size = 2

webpack.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ module.exports = {
2424
commonjs2: "react",
2525
commonjs: "react",
2626
amd: "react"
27+
},
28+
"react-dom": {
29+
root: "ReactDOM",
30+
commonjs2: "react-dom",
31+
commonjs: "react-dom",
32+
amd: "react-dom"
2733
}
2834
}],
2935
plugins: [

0 commit comments

Comments
 (0)