fix(admin-sdk): Remove polyfills and unused dependencies (#7434)
This commit is contained in:
@@ -26,14 +26,10 @@
|
||||
"@medusajs/dashboard": "0.0.1",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"commander": "^11.1.0",
|
||||
"compression": "^1.7.4",
|
||||
"deepmerge": "^4.3.1",
|
||||
"glob": "^7.1.6",
|
||||
"postcss": "^8.4.32",
|
||||
"tailwindcss": "^3.3.6",
|
||||
"vite": "^5.2.11",
|
||||
"vite-plugin-node-polyfills": "^0.21.0"
|
||||
"vite": "^5.2.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"express": "^4.18.2",
|
||||
|
||||
@@ -2,7 +2,6 @@ import { VIRTUAL_MODULES } from "@medusajs/admin-shared"
|
||||
import path from "path"
|
||||
import { Config } from "tailwindcss"
|
||||
import type { InlineConfig } from "vite"
|
||||
import { nodePolyfills } from "vite-plugin-node-polyfills"
|
||||
|
||||
import { BundlerOptions } from "../types"
|
||||
|
||||
@@ -58,15 +57,6 @@ export async function getViteConfig(
|
||||
medusa({
|
||||
sources: options.sources,
|
||||
}),
|
||||
/**
|
||||
* TODO: Remove polyfills, they are currently only required for the
|
||||
* `axios` dependency in the dashboard. Once we have the new SDK,
|
||||
* we should remove this, and leave it up to the user to include
|
||||
* polyfills if they need them.
|
||||
*/
|
||||
nodePolyfills({
|
||||
include: ["crypto", "util", "stream"],
|
||||
}),
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user