Socket
Socket
Sign inDemoInstall

tsup

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsup - npm Package Compare versions

Comparing version 3.7.1 to 3.8.0

dist/chunk.3WrqU5ii.js

2

dist/cli.js

@@ -27,3 +27,3 @@ #!/usr/bin/env node

default: "es2017"
}).option("--babel", "Transform the result with Babel").option("--legacy-output", "Output different formats to different folder instead of using different extensions").option("--dts", "Generate declaration file").option("--watch", "Watch mode").option("--env.* <value>", "Define compile-time env variables").option("--define.* <value>", "Define compile-time constants").option("--external <name>", "Mark specific packages as external").option("--global-name <name>", "Global variable name for iife format").option("--jsxFactory <jsxFactory>", "Name of JSX factory function", {
}).option("--babel", "Transform the result with Babel").option("--legacy-output", "Output different formats to different folder instead of using different extensions").option("--dts", "Generate declaration file").option("--sourcemap", "Generate sourcemap file").option("--watch", "Watch mode").option("--env.* <value>", "Define compile-time env variables").option("--define.* <value>", "Define compile-time constants").option("--external <name>", "Mark specific packages as external").option("--global-name <name>", "Global variable name for iife format").option("--jsxFactory <jsxFactory>", "Name of JSX factory function", {
default: "React.createElement"

@@ -30,0 +30,0 @@ }).option("--jsxFragment <jsxFragment>", "Name of JSX fragment function", {

@@ -31,2 +31,3 @@ import { BuildResult } from 'esbuild';

dts?: boolean;
sourcemap?: boolean;
/** Don't bundle these packages */

@@ -33,0 +34,0 @@ external?: string[];

@@ -5,3 +5,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkAhNKhI9wjs = require('./chunk.AhNKhI9w.js');
var _chunk3WrqU5iijs = require('./chunk.3WrqU5ii.js');
require('./chunk.DEUMEOWj.js');

@@ -14,2 +14,2 @@

exports.build = _chunkAhNKhI9wjs.build; exports.makeLabel = _chunkAhNKhI9wjs.makeLabel; exports.runEsbuild = _chunkAhNKhI9wjs.runEsbuild;
exports.build = _chunk3WrqU5iijs.build; exports.makeLabel = _chunk3WrqU5iijs.makeLabel; exports.runEsbuild = _chunk3WrqU5iijs.runEsbuild;
{
"name": "tsup",
"version": "3.7.1",
"version": "3.8.0",
"main": "dist/index.js",

@@ -28,3 +28,3 @@ "bin": "dist/cli.js",

"resolve-from": "^5.0.0",
"rollup": "^2.32.0",
"rollup": "^2.33.1",
"rollup-plugin-dts": "^1.4.10",

@@ -37,14 +37,14 @@ "sucrase": "^3.16.0"

"@types/buble": "^0.19.2",
"@types/fs-extra": "^9.0.2",
"@types/jest": "^26.0.14",
"@types/node": "^14.11.10",
"@types/fs-extra": "^9.0.3",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.7",
"@types/resolve": "^1.17.1",
"buble": "^0.20.0",
"execa": "^4.0.3",
"execa": "^4.1.0",
"fs-extra": "^9.0.1",
"jest": "^26.6.0",
"jest": "^26.6.3",
"prettier": "^2.1.2",
"rollup-plugin-hashbang": "^2.2.2",
"strip-json-comments": "^3.1.1",
"ts-jest": "^26.4.1",
"ts-jest": "^26.4.4",
"tsup": "^3.2.0",

@@ -51,0 +51,0 @@ "typescript": "^3.9.7"

@@ -59,2 +59,12 @@ # tsup

### Generate sourcemap file
```bash
tsup index.ts --sourcemap
```
This will emit `./dist/index.js` and `./dist/index.js.map`.
If you set multiple entry files, each entry will get a corresponding `.map` file.
### Bundle formats

@@ -129,2 +139,10 @@

### Minify output
You can also minify the output, resulting into lower bundle sizes by using the `--minify` flag.
```bash
tsup src/index.ts --minify
```
### What about type checking?

@@ -131,0 +149,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc