mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-22 06:33:03 +00:00
[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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user