Skip to content

Commit

Permalink
create-wmr: Move alias to config
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jul 8, 2021
1 parent 60d1c37 commit 5712956
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-ears-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-wmr': patch
---

Move alias declaration to config file + add docs link
4 changes: 0 additions & 4 deletions packages/create-wmr/tpl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
"eslintConfig": {
"extends": "preact"
},
"alias": {
"react": "preact/compat",
"react-dom": "preact/compat"
},
"dependencies": {
"preact": "latest",
"preact-iso": "latest"
Expand Down
5 changes: 5 additions & 0 deletions packages/create-wmr/tpl/wmr.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { defineConfig } from 'wmr';

// Full list of options: https://wmr.dev/docs/configuration
export default defineConfig({
/* Your configuration here */
alias: {
react: 'preact/compat',
'react-dom': 'preact/compat'
}
});

0 comments on commit 5712956

Please sign in to comment.