Browse Source

chore: Add theme=null export for vite build error (#37462)

* fix: Vite build error

* test: Update snapshot

* chore: Update snapshot
pull/37471/head
二货爱吃白萝卜 2 years ago
committed by GitHub
parent
commit
7c087deded
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/__tests__/__snapshots__/index.test.ts.snap
  2. 3
      components/index.tsx
  3. 1
      tests/__snapshots__/index.test.js.snap

1
components/__tests__/__snapshots__/index.test.ts.snap

@ -67,6 +67,7 @@ Array [
"Upload", "Upload",
"message", "message",
"notification", "notification",
"theme",
"version", "version",
] ]
`; `;

3
components/index.tsx

@ -16,6 +16,9 @@ if (
} }
/* @remove-on-es-build-end */ /* @remove-on-es-build-end */
// Fix vite build error
export const theme = null;
export { default as Affix } from './affix'; export { default as Affix } from './affix';
export type { AffixProps } from './affix'; export type { AffixProps } from './affix';
export { default as Alert } from './alert'; export { default as Alert } from './alert';

1
tests/__snapshots__/index.test.js.snap

@ -67,6 +67,7 @@ Array [
"Upload", "Upload",
"message", "message",
"notification", "notification",
"theme",
"version", "version",
] ]
`; `;

Loading…
Cancel
Save