Last active
May 30, 2020 16:44
-
-
Save guillegr123/d1988b24105dbd1589a26e2bbbfb02bc to your computer and use it in GitHub Desktop.
phoenix_preact-2_aliasing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
module.exports = (env, options) => { | |
// ... | |
return { | |
// ... | |
module: { | |
// ... | |
}, | |
resolve: { | |
alias: { | |
react: 'preact/compat', | |
'react-dom/test-utils': 'preact/test-utils', | |
'react-dom': 'preact/compat' | |
}, | |
}, | |
plugins: [ | |
// ... | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment