array-comparisoncomparisoncomparison-tooldeep-diffdiffjson-diffnodejsobject-comparisonobject-diffobjectdiffobjectdifferencereactstreamingstreaming-datatypescript
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
549 B
31 lines
549 B
import { defineConfig, Options } from "tsup"; |
|
|
|
const sharedConfig: Options = { |
|
dts: true, |
|
splitting: true, |
|
clean: true, |
|
treeshake: true, |
|
shims: true, |
|
minify: true, |
|
}; |
|
|
|
export default defineConfig([ |
|
{ |
|
entry: ["src/index.ts"], |
|
format: ["cjs", "esm"], |
|
...sharedConfig, |
|
platform: "neutral", |
|
}, |
|
{ |
|
entry: ["src/server.ts"], |
|
format: ["cjs", "esm"], |
|
...sharedConfig, |
|
platform: "node", |
|
}, |
|
{ |
|
entry: ["src/client.ts"], |
|
format: ["cjs", "esm"], |
|
...sharedConfig, |
|
platform: "browser", |
|
}, |
|
]);
|
|
|