mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
- #23, fix for jsx: preserve option
This commit is contained in:
parent
733337fcb8
commit
904f339a32
2
dist/rollup-plugin-typescript2.cjs.js
vendored
2
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -577,7 +577,7 @@ function typescript(options) {
|
||||
if (_.isFunction(_this.error))
|
||||
_this.error(colors.red("failed to transpile '" + id + "'"));
|
||||
}
|
||||
var transpiled = _.find(output.outputFiles, function (entry) { return _.endsWith(entry.name, ".js"); });
|
||||
var transpiled = _.find(output.outputFiles, function (entry) { return _.endsWith(entry.name, ".js") || _.endsWith(entry.name, ".jsx"); });
|
||||
var map$$1 = _.find(output.outputFiles, function (entry) { return _.endsWith(entry.name, ".map"); });
|
||||
var dts = _.find(output.outputFiles, function (entry) { return _.endsWith(entry.name, ".d.ts"); });
|
||||
return {
|
||||
|
||||
2
dist/rollup-plugin-typescript2.es.js
vendored
2
dist/rollup-plugin-typescript2.es.js
vendored
@ -583,7 +583,7 @@ function typescript(options) {
|
||||
if (isFunction(_this.error))
|
||||
_this.error(red("failed to transpile '" + id + "'"));
|
||||
}
|
||||
var transpiled = find(output.outputFiles, function (entry) { return endsWith(entry.name, ".js"); });
|
||||
var transpiled = find(output.outputFiles, function (entry) { return endsWith(entry.name, ".js") || endsWith(entry.name, ".jsx"); });
|
||||
var map$$1 = find(output.outputFiles, function (entry) { return endsWith(entry.name, ".map"); });
|
||||
var dts = find(output.outputFiles, function (entry) { return endsWith(entry.name, ".d.ts"); });
|
||||
return {
|
||||
|
||||
@ -251,7 +251,7 @@ export default function typescript(options?: IOptions)
|
||||
this.error(colors.red(`failed to transpile '${id}'`));
|
||||
}
|
||||
|
||||
const transpiled = _.find(output.outputFiles, (entry) => _.endsWith(entry.name, ".js"));
|
||||
const transpiled = _.find(output.outputFiles, (entry) => _.endsWith(entry.name, ".js") || _.endsWith(entry.name, ".jsx"));
|
||||
const map = _.find(output.outputFiles, (entry) => _.endsWith(entry.name, ".map"));
|
||||
const dts = _.find(output.outputFiles, (entry) => _.endsWith(entry.name, ".d.ts"));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user