rollup-plugin-esbuild
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -18,2 +18,7 @@ import { Plugin } from 'rollup'; | ||
/** | ||
* Use this tsconfig file instead | ||
* Disable it by setting to `false` | ||
*/ | ||
tsconfig?: string | false; | ||
/** | ||
* Map extension to esbuild loader | ||
@@ -20,0 +25,0 @@ * Note that each entry (the extension) needs to start with a dot |
@@ -21,5 +21,5 @@ 'use strict'; | ||
}); | ||
const getOptions = async (cwd) => { | ||
const getOptions = async (cwd, tsconfig) => { | ||
var _a, _b, _c; | ||
const {data, path} = await joycon2.load(["tsconfig.json"], cwd); | ||
const {data, path} = await joycon2.load([tsconfig || "tsconfig.json"], cwd); | ||
if (path && data) { | ||
@@ -103,3 +103,3 @@ return { | ||
} | ||
const defaultOptions = await getOptions(path.dirname(id)); | ||
const defaultOptions = options2.tsconfig === false ? {} : await getOptions(path.dirname(id), options2.tsconfig); | ||
const result = await service.transform(code, { | ||
@@ -106,0 +106,0 @@ loader, |
{ | ||
"name": "rollup-plugin-esbuild", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
# rollup-plugin-esbuild | ||
![npm version](https://badgen.net/npm/v/rollup-plugin-esbuild) ![npm downloads](https://badgen.net/npm/dm/rollup-plugin-esbuild) | ||
[esbuild](https://github.com/evanw/esbuild) is by far one of the fastest TS/ESNext to ES6 compilers and minifier, this plugin replaces `rollup-plugin-typescript2`, `@rollup/plugin-typescript` and `rollup-plugin-terser` for you. | ||
@@ -4,0 +6,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9563
182
63