chore: update build configuration to use string format for esm
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
co-authored by
Copilot
parent
f69a56fb18
commit
8d62186ddc
+4
-4
@@ -111,7 +111,7 @@ async function buildApi() {
|
|||||||
target: "esnext",
|
target: "esnext",
|
||||||
platform: "browser",
|
platform: "browser",
|
||||||
nodeProtocol: true,
|
nodeProtocol: true,
|
||||||
format: ["esm"],
|
format: "esm",
|
||||||
|
|
||||||
loader: {
|
loader: {
|
||||||
".svg": "dataurl",
|
".svg": "dataurl",
|
||||||
@@ -153,7 +153,7 @@ async function buildUi() {
|
|||||||
},
|
},
|
||||||
devtools: dev,
|
devtools: dev,
|
||||||
platform: "browser",
|
platform: "browser",
|
||||||
format: ["esm"],
|
format: "esm",
|
||||||
unbundle: false,
|
unbundle: false,
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
loader: {
|
loader: {
|
||||||
@@ -218,7 +218,7 @@ async function buildUiElements() {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
platform: "browser",
|
platform: "browser",
|
||||||
format: ["esm"],
|
format: "esm",
|
||||||
bundle: true,
|
bundle: true,
|
||||||
treeshake: true,
|
treeshake: true,
|
||||||
loader: {
|
loader: {
|
||||||
@@ -247,7 +247,7 @@ function baseConfig(adapter: string, overrides: Partial<UserConfig> = {}): UserC
|
|||||||
watch: false,
|
watch: false,
|
||||||
dts: false,
|
dts: false,
|
||||||
entry: [`src/adapter/${adapter}/index.ts`],
|
entry: [`src/adapter/${adapter}/index.ts`],
|
||||||
format: ["esm"],
|
format: "esm",
|
||||||
platform: "neutral",
|
platform: "neutral",
|
||||||
outDir: `dist/adapter/${adapter}`,
|
outDir: `dist/adapter/${adapter}`,
|
||||||
devtools: dev,
|
devtools: dev,
|
||||||
|
|||||||
Reference in New Issue
Block a user