mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
This reverts commit b1d5c07b5cc3c2249e2d2972920f6973f261650c.
This commit is contained in:
parent
b1d5c07b5c
commit
eef600da27
5
dist/index.d.ts
vendored
5
dist/index.d.ts
vendored
@ -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
2
dist/index.d.ts.map
vendored
@ -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"}
|
||||
12
dist/rollup-plugin-typescript2.cjs.js
vendored
12
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -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);
|
||||
|
||||
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
12
dist/rollup-plugin-typescript2.es.js
vendored
12
dist/rollup-plugin-typescript2.es.js
vendored
@ -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);
|
||||
|
||||
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
16
src/index.ts
16
src/index.ts
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user