[plugin] HMR lib hooks (#12108)

* Expose HMR plugin

* Expose function for localizing a plugin component

* Update npm version

* better docs

* Plugin provides i18n instance

* Expose HMR plugin on different path

* Bump version (again)

* Ensure HMR plugin is properly built

* Bump (again)

* Specify callback function

* Bump package version

* Improved docstrings

* Stricter type hinting
This commit is contained in:
Oliver
2026-06-07 23:56:26 +10:00
committed by GitHub
parent 7f1f2dbad2
commit 20309146aa
6 changed files with 193 additions and 3 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ export default defineConfig((cfg) =>
},
lib: {
entry: {
index: resolve(__dirname, 'lib/index.ts')
index: resolve(__dirname, 'lib/index.ts'),
'plugin/InventreeHmrPlugin': resolve(
__dirname,
'lib/plugin/InventreeHmrPlugin.tsx'
)
},
name: 'InvenTree',
formats: ['es']