Skip to content

Commit

Permalink
Add oddly required aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed May 26, 2023
1 parent b19d9f5 commit e971cd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/webpack/interactivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ module.exports = {
filename: './build/interactivity/[name].min.js',
path: join( __dirname, '..', '..' ),
},
resolve: {
alias: {
react: 'preact/compat',
'react-dom': 'preact/compat',
},
},
module: {
rules: [
{
Expand Down

0 comments on commit e971cd6

Please sign in to comment.