Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Feb 1, 2024
1 parent f9f8e13 commit beed76d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/hmr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function transform({ resolver, resourcePath, plugin }) {
const resourcePath = resourcePath.replace(/\\/g, '/').split('?')[0];
async function transform({ resolver, resourcePath, plugin }) {
resourcePath = resourcePath.replace(/\\/g, '/').split('?')[0];
const supportedPaths = ['routers', 'controllers', 'routes'];
const supportedFileNames = [
'router.js',
Expand Down Expand Up @@ -60,7 +60,7 @@ function transform({ resolver, resourcePath, plugin }) {
`;
}

export default function (resolver) {
export function hmr(resolver) {
return {
name: 'hmr-plugin',
enforce: 'post',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-vite-hmr",
"version": "0.2.0",
"version": "0.3.0",
"keywords": [
"ember-addon"
],
Expand Down Expand Up @@ -126,7 +126,7 @@
},
"exports": {
".": {
"default": "./dist/lib/ember-webpack.js"
"default": "./dist/lib/hmr.js"
},
"./*": {
"types": "./declarations/*.d.ts",
Expand Down

0 comments on commit beed76d

Please sign in to comment.