feat(admin-bundler,admin-vite-plugin,medusa): Add support for loading Admin Extensions from plugins (#10869)

Should not be merged before https://github.com/medusajs/medusa/pull/10895

**What**
- Introduces a new `plugin` command to `admin-bundler`, currently not used anywhere but will be called from `medusa build:plugin`
- Discovers plugins with extensions and add passes the to `admin-vite-plugin`.
- Updates `admin-vite-plugin` so its able to read built admin extensions.

Resolves CMRC-830, CMRC-839
This commit is contained in:
Kasper Fabricius Kristensen
2025-01-13 11:45:33 +01:00
committed by GitHub
parent 253b642418
commit 1ba2fadf22
13 changed files with 316 additions and 92 deletions

View File

@@ -17,11 +17,13 @@ import {
isTemplateLiteral,
isVariableDeclaration,
isVariableDeclarator,
Node,
ObjectExpression,
ObjectMethod,
ObjectProperty,
SpreadElement,
StringLiteral,
VariableDeclarator,
} from "@babel/types"
/**
@@ -58,6 +60,7 @@ export type {
ExportDefaultDeclaration,
ExportNamedDeclaration,
File,
Node,
NodePath,
ObjectExpression,
ObjectMethod,
@@ -66,4 +69,5 @@ export type {
ParserOptions,
SpreadElement,
StringLiteral,
VariableDeclarator,
}