浏览代码

uppy: add a decoy `Core` export to warn users about the renaming (#4085)

Antoine du Hamel 2 年之前
父节点
当前提交
cf2e025f90
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      packages/uppy/index.mjs

+ 7 - 0
packages/uppy/index.mjs

@@ -1,6 +1,13 @@
 // Core
 export { default as Uppy, debugLogger } from '@uppy/core'
 
+/**
+ * @deprecated Use `Uppy` instead of `Core`
+ */
+export function Core () {
+  throw new Error('Core has been renamed to Uppy')
+}
+
 // Utilities
 export * as server from '@uppy/companion-client'