Skip to content

Commit

Permalink
add new babel plugin to enable context HMR (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Sep 17, 2020
1 parent b8ce4dd commit 42e48f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create-snowpack-app/app-scripts-preact/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"plugins": ["@babel/plugin-syntax-import-meta"],
"env": {
"development": {
"plugins": ["react-refresh/babel"]
"plugins": ["@prefresh/babel-plugin"]
}
}
}
4 changes: 2 additions & 2 deletions create-snowpack-app/app-scripts-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@prefresh/babel-plugin": "^0.1.0",
"@prefresh/snowpack": "~1.1.1",
"@snowpack/plugin-babel": "^2.1.0",
"@snowpack/plugin-dotenv": "^2.0.1",
"babel-jest": "^26.2.2",
"react-app-polyfill": "^1.0.6",
"react-refresh": "^0.8.3"
"react-app-polyfill": "^1.0.6"
},
"gitHead": "a01616bb0787d56cd782f94cecf2daa12c7594e4"
}

1 comment on commit 42e48f3

@vercel
Copy link

@vercel vercel bot commented on 42e48f3 Sep 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.