Package.json file
{
"name": "@dtc/backend",
"version": "0.0.1",
"description": "A starter for Medusa projects.",
"author": "Medusa (https://medusajs.com)",
"license": "MIT",
"keywords": [
"sqlite",
"postgres",
"typescript",
"ecommerce",
"headless",
"medusa"
],
"scripts": {
"build": "medusa build",
"start": "medusa start",
"dev": "medusa develop",
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit",
"test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit"
},
"dependencies": {
"@medusajs/admin-sdk": "2.15.3",
"@medusajs/admin-shared": "2.15.3",
"@medusajs/caching": "2.15.3",
"@medusajs/cli": "2.15.3",
"@medusajs/dashboard": "2.15.3",
"@medusajs/draft-order": "2.15.3",
"@medusajs/framework": "2.15.3",
"@medusajs/medusa": "2.15.3",
"@medusajs/ui": "4.1.13",
"@myorg/my-plugin": "file:.yalc/@myorg/my-plugin",
"@tanstack/react-query": "5.64.2",
"react-i18next": "13.5.0",
"react-router-dom": "6.30.3",
"zod": "4.2.0"
},
"devDependencies": {
"@medusajs/test-utils": "2.15.3",
"@swc/core": "^1.7.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.13",
"@types/node": "^20.12.11",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"jest": "^29.7.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.14",
"yalc": "^1.0.0-pre.53"
},
"engines": {
"node": ">=20"
},
"packageManager": "yarn@4.14.1"
}
Node.js version
24.16.0
Database and its version
PostgreSQL 17.9
Operating system name and version
Windows 11
Browser name
Chrome
What happended?
When developing a plugin with a custom admin route, the route is not automatically refreshed when content is changed. The custom route is not updated, and a hard reload does not make a difference. Nothing is logged in the watcher for neither the backend nor the plugin.
Followed every step of the docs for creating a plugin
Expected behavior
The admin route to automatically reload with HMR to display the new contents of a plugin's custom admin route
Actual behavior
Nothing happens. Requires a full plugin:publish to detect changes.
Link to reproduction repo
https://github.com/addemod/studious-broccoli
Package.json file
{ "name": "@dtc/backend", "version": "0.0.1", "description": "A starter for Medusa projects.", "author": "Medusa (https://medusajs.com)", "license": "MIT", "keywords": [ "sqlite", "postgres", "typescript", "ecommerce", "headless", "medusa" ], "scripts": { "build": "medusa build", "start": "medusa start", "dev": "medusa develop", "test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit", "test:integration:modules": "TEST_TYPE=integration:modules NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --forceExit", "test:unit": "TEST_TYPE=unit NODE_OPTIONS=--experimental-vm-modules jest --silent --runInBand --forceExit" }, "dependencies": { "@medusajs/admin-sdk": "2.15.3", "@medusajs/admin-shared": "2.15.3", "@medusajs/caching": "2.15.3", "@medusajs/cli": "2.15.3", "@medusajs/dashboard": "2.15.3", "@medusajs/draft-order": "2.15.3", "@medusajs/framework": "2.15.3", "@medusajs/medusa": "2.15.3", "@medusajs/ui": "4.1.13", "@myorg/my-plugin": "file:.yalc/@myorg/my-plugin", "@tanstack/react-query": "5.64.2", "react-i18next": "13.5.0", "react-router-dom": "6.30.3", "zod": "4.2.0" }, "devDependencies": { "@medusajs/test-utils": "2.15.3", "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "@types/jest": "^29.5.13", "@types/node": "^20.12.11", "@types/react": "^18.3.2", "@types/react-dom": "^18.2.25", "jest": "^29.7.0", "prop-types": "^15.8.1", "react": "^18.3.1", "react-dom": "^18.3.1", "ts-node": "^10.9.2", "typescript": "^5.6.2", "vite": "^5.4.14", "yalc": "^1.0.0-pre.53" }, "engines": { "node": ">=20" }, "packageManager": "yarn@4.14.1" }Node.js version
24.16.0
Database and its version
PostgreSQL 17.9
Operating system name and version
Windows 11
Browser name
Chrome
What happended?
When developing a plugin with a custom admin route, the route is not automatically refreshed when content is changed. The custom route is not updated, and a hard reload does not make a difference. Nothing is logged in the watcher for neither the backend nor the plugin.
Followed every step of the docs for creating a plugin
Expected behavior
The admin route to automatically reload with HMR to display the new contents of a plugin's custom admin route
Actual behavior
Nothing happens. Requires a full plugin:publish to detect changes.
Link to reproduction repo
https://github.com/addemod/studious-broccoli