Revert "Do not use deprecated rollup options (#127)" (#128)

This reverts commit b1d5c07b5cc3c2249e2d2972920f6973f261650c.
This commit is contained in:
Eugene Zolenko 2019-01-03 11:35:04 -07:00 committed by GitHub
parent b1d5c07b5c
commit eef600da27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 40 deletions

5
dist/index.d.ts vendored
View File

@ -9,8 +9,7 @@ export default function typescript(options?: Partial<IOptions>): {
resolveId(importee: string, importer: string): string | null;
load(id: string): string | undefined;
transform(this: IRollupContext, code: string, id: string): IRollupCode | undefined;
generateBundle(options: IRollupOptions, _bundle: any, isWrite: boolean): void;
_ongenerate(): void;
_onwrite({ dest, file }: IRollupOptions): void;
ongenerate(): void;
onwrite({ dest, file }: IRollupOptions): void;
};
//# sourceMappingURL=index.d.ts.map

2
dist/index.d.ts.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAkB,MAAM,WAAW,CAAC;AAE3E,OAAO,EAA8B,WAAW,EAAqB,MAAM,WAAW,CAAC;AAKvF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;EAqW7D"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAkB,MAAM,WAAW,CAAC;AAE3E,OAAO,EAA8B,WAAW,EAAqB,MAAM,WAAW,CAAC;AAKvF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;;;;;;;;EAyV7D"}

View File

@ -21602,15 +21602,7 @@ function typescript(options) {
}
return undefined;
},
generateBundle(options, _bundle, isWrite) {
if (isWrite) {
this._onwrite(options);
}
else {
this._ongenerate();
}
},
_ongenerate() {
ongenerate() {
context.debug(() => `generating target ${generateRound + 1}`);
if (pluginOptions.check && watchMode && generateRound === 0) {
cache().walkTree((id) => {
@ -21632,7 +21624,7 @@ function typescript(options) {
cache().done();
generateRound++;
},
_onwrite({ dest, file }) {
onwrite({ dest, file }) {
if (parsedConfig.options.declaration) {
lodash_2(parsedConfig.fileNames, (name) => {
const key = normalize(name);

File diff suppressed because one or more lines are too long

View File

@ -21598,15 +21598,7 @@ function typescript(options) {
}
return undefined;
},
generateBundle(options, _bundle, isWrite) {
if (isWrite) {
this._onwrite(options);
}
else {
this._ongenerate();
}
},
_ongenerate() {
ongenerate() {
context.debug(() => `generating target ${generateRound + 1}`);
if (pluginOptions.check && watchMode && generateRound === 0) {
cache().walkTree((id) => {
@ -21628,7 +21620,7 @@ function typescript(options) {
cache().done();
generateRound++;
},
_onwrite({ dest, file }) {
onwrite({ dest, file }) {
if (parsedConfig.options.declaration) {
lodash_2(parsedConfig.fileNames, (name) => {
const key = normalize$1(name);

File diff suppressed because one or more lines are too long

View File

@ -270,19 +270,7 @@ export default function typescript(options?: Partial<IOptions>)
return undefined;
},
generateBundle(options: IRollupOptions, _bundle: any, isWrite: boolean): void
{
if (isWrite)
{
this._onwrite(options);
}
else
{
this._ongenerate();
}
},
_ongenerate(): void
ongenerate(): void
{
context.debug(() => `generating target ${generateRound + 1}`);
@ -320,7 +308,7 @@ export default function typescript(options?: Partial<IOptions>)
generateRound++;
},
_onwrite({ dest, file }: IRollupOptions): void
onwrite({ dest, file }: IRollupOptions)
{
if (parsedConfig.options.declaration)
{