Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: egoist/tsup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.2.1
Choose a base ref
...
head repository: egoist/tsup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.2.2
Choose a head ref
  • 8 commits
  • 10 files changed
  • 2 contributors

Commits on Jul 30, 2022

  1. chore: add sponsor

    EGOIST committed Jul 30, 2022
    Copy the full SHA
    06fd4db View commit details
  2. chore(pkg): add description

    EGOIST committed Jul 30, 2022
    1
    Copy the full SHA
    52bc732 View commit details

Commits on Aug 1, 2022

  1. chore: update docs url

    EGOIST authored Aug 1, 2022
    Copy the full SHA
    eb3a034 View commit details

Commits on Aug 2, 2022

  1. chore(docs): update url

    egoist committed Aug 2, 2022
    1
    Copy the full SHA
    47e6f4d View commit details

Commits on Aug 6, 2022

  1. chore: update analytics id

    egoist committed Aug 6, 2022
    1
    Copy the full SHA
    dda4b3c View commit details

Commits on Aug 12, 2022

  1. Copy the full SHA
    c3dc8d8 View commit details
  2. Copy the full SHA
    c06b5e1 View commit details
  3. 1
    Copy the full SHA
    7000c8b View commit details
Showing with 253 additions and 417 deletions.
  1. +5 −3 README.md
  2. +2 −2 docs/README.md
  3. +13 −2 docs/index.html
  4. +3 −2 package.json
  5. +124 −322 pnpm-lock.yaml
  6. +15 −14 src/esbuild/index.ts
  7. +1 −1 src/plugins/cjs-splitting.ts
  8. +2 −0 src/plugins/tree-shaking.ts
  9. +61 −69 test/__snapshots__/index.test.ts.snap
  10. +27 −2 test/index.test.ts
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ Bundle your TypeScript library with no config, powered by [esbuild](https://gith

## 👀 What can it bundle?

Anything that's supported by Node.js natively, namely `.js`, `.json`, `.mjs`. And TypeScript `.ts`, `.tsx`. [CSS support is experimental](https://tsup.egoist.sh/#css-support).
Anything that's supported by Node.js natively, namely `.js`, `.json`, `.mjs`. And TypeScript `.ts`, `.tsx`. [CSS support is experimental](https://tsup.egoist.dev/#css-support).

## ⚙️ Install

@@ -40,7 +40,7 @@ This will output `dist/index.js` and `dist/cli.js`.

## 📚 Documentation

For complete usages, please dive into the [docs](https://tsup.egoist.sh).
For complete usages, please dive into the [docs](https://tsup.egoist.dev).

For all configuration options, please see [the API docs](https://paka.dev/npm/tsup#module-index-export-Options).

@@ -50,7 +50,9 @@ Head over to the [discussions](https://github.com/egoist/tsup/discussions) to sh

## Sponsors

[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)
<a href="https://browserku.com" target="_blank"><img src="https://cdn.jsdelivr.net/gh/egoist-bot/images@main/upic/ETF2kP.png" alt="browserku"></a>

[![sponsors](https://sponsors-images.egoist.dev/sponsors.svg)](https://github.com/sponsors/egoist)

## Project Stats

4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
import { html } from 'docup'

export default () => {
let isPreview = location.hostname !== 'tsup.egoist.sh'
let isPreview = location.hostname !== 'tsup.egoist.dev'

if (!isPreview) return null

@@ -183,7 +183,7 @@ They should not be included in a published NPM package and should not be confuse

[Tsup is not able to generate those files](https://github.com/egoist/tsup/issues/564). Instead, you should use the TypeScript compiler directly, by running the following command after the build is done: `tsc --emitDeclarationOnly --declaration`.

You can combine this command with Tsup [`onSuccess`](https://tsup.egoist.sh/#onsuccess) callback.
You can combine this command with Tsup [`onSuccess`](https://tsup.egoist.dev/#onsuccess) callback.

### Generate sourcemap file

15 changes: 13 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -31,13 +31,24 @@
link: `https://github.com/sponsors/egoist`,
},
],
beforeSidebar: `<div style="background:#f9f9f9;padding: 20px;">
<div>
<strong style="font-size: 0.8rem;color:#ccc;">SPONSOR</strong>
</div>
<a href="https://browserku.com" rel="nofollow noopener" target="_blank"
><img
title="API for web scraping, screenshots, PDF generation and more"
alt="browserku logo"
src="https://cdn.jsdelivr.net/gh/egoist-bot/images@main/upic/b38Wz1.png"
/></a>
</div>`,
})
</script>
<script
async
defer
data-website-id="d0d25c97-2e1a-4167-84bc-f57dc5efa51c"
src="https://umami.egoist.sh/mami.js"
data-website-id="24610d03-48c4-4ad3-8557-4d424349d2ba"
src="https://umami.egoist.dev/mami.js"
></script>
</body>
</html>
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "tsup",
"version": "0.0.0-semantic-release",
"description": "Bundle your TypeScript library with no config, powered by esbuild",
"main": "dist/index.js",
"bin": {
"tsup": "dist/cli-default.js",
@@ -29,7 +30,7 @@
"cac": "^6.7.12",
"chokidar": "^3.5.1",
"debug": "^4.3.1",
"esbuild": "^0.14.25",
"esbuild": "^0.15.1",
"execa": "^5.0.0",
"globby": "^11.0.3",
"joycon": "^3.0.1",
@@ -64,7 +65,7 @@
"tsconfig-paths": "3.12.0",
"tsup": "6.0.1",
"typescript": "4.6.3",
"vitest": "0.19.0",
"vitest": "0.21.1",
"wait-for-expect": "3.0.2"
},
"peerDependencies": {
Loading