Skip to content

Commit

Permalink
Revert "Do not use deprecated rollup options (#127)" (#128)
Browse files Browse the repository at this point in the history
This reverts commit b1d5c07.
  • Loading branch information
ezolenko authored Jan 3, 2019
1 parent b1d5c07 commit eef600d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 40 deletions.
5 changes: 2 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions dist/rollup-plugin-typescript2.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.cjs.js.map

Large diffs are not rendered by default.

12 changes: 2 additions & 10 deletions dist/rollup-plugin-typescript2.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.es.js.map

Large diffs are not rendered by default.

16 changes: 2 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit eef600d

Please sign in to comment.