mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
parent
e00fd325c7
commit
6135555b5c
1
dist/index.d.ts
vendored
1
dist/index.d.ts
vendored
@ -4,6 +4,7 @@ import { IRollupOptions } from "./irollup-options";
|
||||
import { IOptions } from "./ioptions";
|
||||
import { Partial } from "./partial";
|
||||
export default function typescript(options?: Partial<IOptions>): {
|
||||
name: string;
|
||||
options(config: IRollupOptions): void;
|
||||
resolveId(importee: string, importer: string): string | null;
|
||||
load(id: string): string | undefined;
|
||||
|
||||
7
dist/rollup-plugin-typescript2.cjs.js
vendored
7
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -17197,7 +17197,7 @@ var RollupContext = /** @class */ (function () {
|
||||
if (this.verbosity < VerbosityLevel.Warning)
|
||||
return;
|
||||
if (this.hasContext)
|
||||
this.context.warn("" + this.prefix + message);
|
||||
this.context.warn("" + message);
|
||||
else
|
||||
console.log("" + this.prefix + message);
|
||||
};
|
||||
@ -17206,9 +17206,9 @@ var RollupContext = /** @class */ (function () {
|
||||
return;
|
||||
if (this.hasContext) {
|
||||
if (this.bail)
|
||||
this.context.error("" + this.prefix + message);
|
||||
this.context.error("" + message);
|
||||
else
|
||||
this.context.warn("" + this.prefix + message);
|
||||
this.context.warn("" + message);
|
||||
}
|
||||
else
|
||||
console.log("" + this.prefix + message);
|
||||
@ -19781,6 +19781,7 @@ function typescript(options) {
|
||||
});
|
||||
setTypescriptModule(pluginOptions.typescript);
|
||||
return {
|
||||
name: "rpt2",
|
||||
options: function (config) {
|
||||
rollupOptions = config;
|
||||
context = new ConsoleContext(pluginOptions.verbosity, "rpt2: ");
|
||||
|
||||
2
dist/rollup-plugin-typescript2.cjs.js.map
vendored
2
dist/rollup-plugin-typescript2.cjs.js.map
vendored
File diff suppressed because one or more lines are too long
7
dist/rollup-plugin-typescript2.es.js
vendored
7
dist/rollup-plugin-typescript2.es.js
vendored
@ -17193,7 +17193,7 @@ var RollupContext = /** @class */ (function () {
|
||||
if (this.verbosity < VerbosityLevel.Warning)
|
||||
return;
|
||||
if (this.hasContext)
|
||||
this.context.warn("" + this.prefix + message);
|
||||
this.context.warn("" + message);
|
||||
else
|
||||
console.log("" + this.prefix + message);
|
||||
};
|
||||
@ -17202,9 +17202,9 @@ var RollupContext = /** @class */ (function () {
|
||||
return;
|
||||
if (this.hasContext) {
|
||||
if (this.bail)
|
||||
this.context.error("" + this.prefix + message);
|
||||
this.context.error("" + message);
|
||||
else
|
||||
this.context.warn("" + this.prefix + message);
|
||||
this.context.warn("" + message);
|
||||
}
|
||||
else
|
||||
console.log("" + this.prefix + message);
|
||||
@ -19777,6 +19777,7 @@ function typescript(options) {
|
||||
});
|
||||
setTypescriptModule(pluginOptions.typescript);
|
||||
return {
|
||||
name: "rpt2",
|
||||
options: function (config) {
|
||||
rollupOptions = config;
|
||||
context = new ConsoleContext(pluginOptions.verbosity, "rpt2: ");
|
||||
|
||||
2
dist/rollup-plugin-typescript2.es.js.map
vendored
2
dist/rollup-plugin-typescript2.es.js.map
vendored
File diff suppressed because one or more lines are too long
@ -63,6 +63,8 @@ export default function typescript(options?: Partial<IOptions>)
|
||||
|
||||
return {
|
||||
|
||||
name: "rpt2",
|
||||
|
||||
options(config: IRollupOptions)
|
||||
{
|
||||
rollupOptions = config;
|
||||
|
||||
@ -16,7 +16,7 @@ export class RollupContext implements IContext
|
||||
return;
|
||||
|
||||
if (this.hasContext)
|
||||
this.context.warn(`${this.prefix}${message}`);
|
||||
this.context.warn(`${message}`);
|
||||
else
|
||||
console.log(`${this.prefix}${message}`);
|
||||
}
|
||||
@ -29,9 +29,9 @@ export class RollupContext implements IContext
|
||||
if (this.hasContext)
|
||||
{
|
||||
if (this.bail)
|
||||
this.context.error(`${this.prefix}${message}`);
|
||||
this.context.error(`${message}`);
|
||||
else
|
||||
this.context.warn(`${this.prefix}${message}`);
|
||||
this.context.warn(`${message}`);
|
||||
}
|
||||
else
|
||||
console.log(`${this.prefix}${message}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user