fix(admin-sdk): Remove polyfills and unused dependencies (#7434)

This commit is contained in:
Kasper Fabricius Kristensen
2024-05-23 22:02:40 +02:00
committed by GitHub
parent 135772b27b
commit 253bec655c
3 changed files with 11 additions and 606 deletions
@@ -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"],
}),
],
}
}