Skip to content

Commit

Permalink
docs(module-tools): fix missing dts config in build-preset example (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Dec 15, 2023
1 parent 13fc9cb commit 6ae85fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/document/module-doc/docs/en/api/config/build-preset.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundle',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundle',
outDir: './dist/es',
dts: false,
},
{
buildType: 'bundle',
Expand Down Expand Up @@ -77,19 +79,22 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundle',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundle',
outDir: './dist/es',
dts: false,
},
{
format: 'umd',
target: 'es6',
platform: 'browser',
buildType: 'bundle',
outDir: './dist/umd',
dts: false,
},
{
buildType: 'bundle',
Expand Down Expand Up @@ -124,12 +129,14 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundleless',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundleless',
outDir: './dist/es',
dts: false,
},
{
buildType: 'bundleless',
Expand Down Expand Up @@ -161,19 +168,22 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundleless',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundleless',
outDir: './dist/es',
dts: false,
},
{
format: 'umd',
target: 'es6',
platform: 'browser',
buildType: 'bundle',
outDir: './dist/umd',
dts: false,
},
{
buildType: 'bundleless',
Expand Down
10 changes: 10 additions & 0 deletions packages/document/module-doc/docs/zh/api/config/build-preset.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundle',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundle',
outDir: './dist/es',
dts: false,
},
{
buildType: 'bundle',
Expand Down Expand Up @@ -79,19 +81,22 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundle',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundle',
outDir: './dist/es',
dts: false,
},
{
format: 'umd',
target: 'es6',
platform: 'browser',
buildType: 'bundle',
outDir: './dist/umd',
dts: false,
},
{
buildType: 'bundle',
Expand Down Expand Up @@ -126,12 +131,14 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundleless',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundleless',
outDir: './dist/es',
dts: false,
},
{
buildType: 'bundleless',
Expand Down Expand Up @@ -163,19 +170,22 @@ export const buildConfig = [
target: 'es6',
buildType: 'bundleless',
outDir: './dist/lib',
dts: false,
},
{
format: 'esm',
target: 'es6',
buildType: 'bundleless',
outDir: './dist/es',
dts: false,
},
{
format: 'umd',
target: 'es6',
platform: 'browser',
buildType: 'bundle',
outDir: './dist/umd',
dts: false,
},
{
buildType: 'bundleless',
Expand Down

0 comments on commit 6ae85fe

Please sign in to comment.