Skip to content

Commit 8d0982d

Browse files
committed
Added Webpack configuration to substitute Preact for React.
1 parent a568dfc commit 8d0982d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ module.exports = {
1717
}
1818
}]
1919
},
20+
resolve: {
21+
alias: {
22+
'react': 'preact-compat',
23+
'react-dom': 'preact-compat'
24+
}
25+
},
2026
output: {
2127
path: path.join(__dirname, 'webpack_out'),
2228
filename: 'minimalistic_react.js'

0 commit comments

Comments
 (0)