rollup-plugin-swc
Advanced tools
Comparing version
import { Options } from '@swc/core'; | ||
import { Plugin } from 'rollup'; | ||
declare const _default: (options?: Pick<Options, "cwd" | "caller" | "root" | "rootMode" | "envName" | "configFile" | "swcrc" | "swcrcRoots" | "inputSourceMap" | "sourceMaps" | "sourceFileName" | "sourceRoot" | "plugin" | "jsc" | "module" | "minify">) => Plugin; | ||
export default _default; | ||
declare type PluginOptions<O = Options> = Pick<O, Exclude<keyof O, 'filename'>>; | ||
declare type RollupPluginSWC = (options?: PluginOptions) => Plugin; | ||
declare const swc: RollupPluginSWC; | ||
export default swc; |
{ | ||
"name": "rollup-plugin-swc", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"description": "Rollup plugin to compile bundles with the SWC.", | ||
@@ -13,4 +13,4 @@ "homepage": "https://github.com/mentaljam/rollup-plugin-swc", | ||
}, | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.es.js", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
@@ -23,4 +23,6 @@ "files": [ | ||
"scripts": { | ||
"build": "rollup -c", | ||
"lint": "tslint -p .", | ||
"build": "npm run build:cjs & npm run build:esm & npm run build:types", | ||
"build:cjs": "tsc -p config/cjs.json", | ||
"build:esm": "tsc -p config/esm.json", | ||
"build:types": "tsc -p config/types.json", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -36,9 +38,5 @@ }, | ||
"devDependencies": { | ||
"@swc/core": "^1.1.43", | ||
"rollup": "^2.10.2", | ||
"rollup-plugin-tslint": "^0.2.2", | ||
"rollup-plugin-typescript2": "^0.27.1", | ||
"tslint": "^6.1.2", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.9.2" | ||
"@swc/core": "^1.2.62", | ||
"rollup": "^2.52.4", | ||
"typescript": "^4.3.4" | ||
}, | ||
@@ -45,0 +43,0 @@ "peerDependencies": { |
@@ -8,4 +8,5 @@ # rollup-plugin-swc | ||
```sh | ||
npm i -D rollup-plugin-swc | ||
npm i -D rollup-plugin-swc @swc/core | ||
``` | ||
> Note: `@swc/core` is a peer dependency | ||
@@ -12,0 +13,0 @@ ## Usage |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
3794
0.64%3
-57.14%26
13.04%47
2.17%0
-100%