Nicola Krumschmidt
e764c7c7fb
Fix extension loading on windows ( #6579 )
...
Javascript import syntax uses URLs instead of paths, so we have to
normalize the extension paths to forward slashes when importing them
inside the virtual entrypoints.
Fixes #6550
2021-06-30 10:03:21 -04:00
Nicola Krumschmidt
ed1127f3b1
Fix extension loading when PUBLIC_URL is absolute without origin ( #6534 )
...
* Fix extension loading when PUBLIC_URL is absolute without origin
* Minify extension bundler output
* Make extension loading in dev more robust
* Rename ensureExtensionsDirs to ensureExtensionDirs
2021-06-28 11:20:30 -04:00
Nicola Krumschmidt
d544214c79
Fix extension loading on initial startup ( #6471 )
2021-06-23 18:16:13 -04:00
Nicola Krumschmidt
051df415df
Fix extensions ( #6377 )
...
* Add support for npm extensions
* Allow extensions to import vue from the main app
* Bundle app extensions on server startup
* Fix return type of useLayoutState
* Add shared package
* Add extension-sdk package
* Add type declaration files to allow deep import of shared package
* Add extension loading to shared
* Refactor extension loading to use shared package
* Remove app bundle newline replacement
* Fix extension loading in development
* Rename extension entrypoints
* Update extension build instructions
* Remove vite auto-replacement workaround
* Update package-lock.json
* Remove newline from generated extension entrypoint
* Update package-lock.json
* Build shared package as cjs and esm
* Move useLayoutState composable to shared
* Reverse vite base env check
* Share useLayoutState composable through extension-sdk
* Update layout docs
* Update package versions
* Small cleanup
* Fix layout docs
* Fix imports
* Add nickrum to codeowners
* Fix typo
* Add 'em to vite config too
* Fix email
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-23 12:43:06 -04:00