diff --git a/.fatherrc.ts b/.fatherrc.ts index 1c70da4..04ccfd1 100644 --- a/.fatherrc.ts +++ b/.fatherrc.ts @@ -11,10 +11,7 @@ export default defineConfig({ // https://github.com/umijs/father/blob/master/docs/config.md#umd umd: { name: 'GPTVis', - output: { - path: './dist/umd', - filename: 'index.js', - }, + output: 'dist/umd', platform: 'browser', externals: { lodash: '_', diff --git a/package.json b/package.json index 5507635..2950cc2 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "typings": "dist/esm/index.d.ts", + "jsdelivr": "dist/umd/index.min.js", + "unpkg": "dist/umd/index.min.js", "files": [ "dist", "README.md", @@ -118,7 +120,7 @@ }, "limit-size": [ { - "path": "dist/umd/index.js", + "path": "dist/umd/index.min.js", "limit": "5 Mb" } ],