mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-30 04:16:48 -05:00
Add tests to verify output of --out with modules as output
This commit is contained in:
@@ -89,6 +89,7 @@
|
||||
"unittests/services/preProcessFile.ts",
|
||||
"unittests/services/textChanges.ts",
|
||||
"unittests/services/transpile.ts",
|
||||
"unittests/tsbuild/amdModulesWithOut.ts",
|
||||
"unittests/tsbuild/emptyFiles.ts",
|
||||
"unittests/tsbuild/graphOrdering.ts",
|
||||
"unittests/tsbuild/missingExtendedFile.ts",
|
||||
|
||||
202
src/testRunner/unittests/tsbuild/amdModulesWithOut.ts
Normal file
202
src/testRunner/unittests/tsbuild/amdModulesWithOut.ts
Normal file
@@ -0,0 +1,202 @@
|
||||
namespace ts {
|
||||
describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => {
|
||||
let outFileFs: vfs.FileSystem;
|
||||
const { time, tick } = getTime();
|
||||
const enum ext { js, jsmap, dts, dtsmap, buildinfo }
|
||||
const enum project { lib, app }
|
||||
type OutputFile = [string, string, string, string, string];
|
||||
function relName(path: string) { return path.slice(1); }
|
||||
const outputFiles: [OutputFile, OutputFile] = [
|
||||
[
|
||||
"/src/lib/module.js",
|
||||
"/src/lib/module.js.map",
|
||||
"/src/lib/module.d.ts",
|
||||
"/src/lib/module.d.ts.map",
|
||||
"/src/lib/module.tsbuildinfo"
|
||||
],
|
||||
[
|
||||
"/src/app/module.js",
|
||||
"/src/app/module.js.map",
|
||||
"/src/app/module.d.ts",
|
||||
"/src/app/module.d.ts.map",
|
||||
"/src/app/module.tsbuildinfo"
|
||||
]
|
||||
];
|
||||
type Sources = [string, ReadonlyArray<string>];
|
||||
const enum source { config, ts }
|
||||
const sources: [Sources, Sources] = [
|
||||
[
|
||||
"/src/lib/tsconfig.json",
|
||||
[
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts",
|
||||
]
|
||||
],
|
||||
[
|
||||
"/src/app/tsconfig.json",
|
||||
[
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
]
|
||||
]
|
||||
];
|
||||
before(() => {
|
||||
outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut", time);
|
||||
});
|
||||
after(() => {
|
||||
outFileFs = undefined!;
|
||||
});
|
||||
|
||||
interface VerifyOutFileScenarioInput {
|
||||
scenario: string;
|
||||
modifyFs: (fs: vfs.FileSystem) => void;
|
||||
modifyAgainFs?: (fs: vfs.FileSystem) => void;
|
||||
}
|
||||
|
||||
function verifyOutFileScenario({
|
||||
scenario,
|
||||
modifyFs,
|
||||
modifyAgainFs
|
||||
}: VerifyOutFileScenarioInput) {
|
||||
verifyTsbuildOutput({
|
||||
scenario,
|
||||
projFs: () => outFileFs,
|
||||
time,
|
||||
tick,
|
||||
proj: "amdModulesWithOut",
|
||||
rootNames: ["/src/app"],
|
||||
expectedMapFileNames: [
|
||||
outputFiles[project.lib][ext.jsmap],
|
||||
outputFiles[project.lib][ext.dtsmap],
|
||||
outputFiles[project.app][ext.jsmap],
|
||||
outputFiles[project.app][ext.dtsmap],
|
||||
],
|
||||
expectedBuildInfoFilesForSectionBaselines: [
|
||||
[outputFiles[project.lib][ext.buildinfo], outputFiles[project.lib][ext.js], outputFiles[project.lib][ext.dts]],
|
||||
[outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]]
|
||||
],
|
||||
lastProjectOutputJs: outputFiles[project.app][ext.js],
|
||||
initialBuild: {
|
||||
modifyFs
|
||||
},
|
||||
incrementalDtsUnchangedBuild: {
|
||||
modifyFs: fs => appendText(fs, relName(sources[project.lib][source.ts][1]), "console.log(x);")
|
||||
},
|
||||
incrementalHeaderChangedBuild: modifyAgainFs ? {
|
||||
modifyFs: modifyAgainFs
|
||||
} : undefined,
|
||||
outputFiles: [
|
||||
...outputFiles[project.lib],
|
||||
...outputFiles[project.app]
|
||||
],
|
||||
baselineOnly: true
|
||||
});
|
||||
}
|
||||
|
||||
describe("Prepend output with .tsbuildinfo", () => {
|
||||
verifyOutFileScenario({
|
||||
scenario: "modules and globals mixed in amd",
|
||||
modifyFs: noop
|
||||
});
|
||||
|
||||
// Prologues
|
||||
describe("Prologues", () => {
|
||||
verifyOutFileScenario({
|
||||
scenario: "multiple prologues in all projects",
|
||||
modifyFs: fs => {
|
||||
enableStrict(fs, sources[project.lib][source.config]);
|
||||
addTestPrologue(fs, sources[project.lib][source.ts][0], `"myPrologue"`);
|
||||
addTestPrologue(fs, sources[project.lib][source.ts][2], `"myPrologueFile"`);
|
||||
enableStrict(fs, sources[project.app][source.config]);
|
||||
addTestPrologue(fs, sources[project.app][source.ts][0], `"myPrologue"`);
|
||||
addTestPrologue(fs, sources[project.app][source.ts][1], `"myPrologue2";`);
|
||||
},
|
||||
modifyAgainFs: fs => addTestPrologue(fs, relName(sources[project.lib][source.ts][1]), `"myPrologue5"`)
|
||||
});
|
||||
});
|
||||
|
||||
// Shebang
|
||||
describe("Shebang", () => {
|
||||
// changes declaration because its emitted in .d.ts file
|
||||
verifyOutFileScenario({
|
||||
scenario: "shebang in all projects",
|
||||
modifyFs: fs => {
|
||||
addShebang(fs, "lib", "file0");
|
||||
addShebang(fs, "lib", "file1");
|
||||
addShebang(fs, "app", "file3");
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// emitHelpers
|
||||
describe("emitHelpers", () => {
|
||||
verifyOutFileScenario({
|
||||
scenario: "multiple emitHelpers in all projects",
|
||||
modifyFs: fs => {
|
||||
addSpread(fs, "lib", "file0");
|
||||
addRest(fs, "lib", "file1");
|
||||
addRest(fs, "app", "file3");
|
||||
addSpread(fs, "app", "file4");
|
||||
},
|
||||
modifyAgainFs: fs => removeRest(fs, "lib", "file1")
|
||||
});
|
||||
});
|
||||
|
||||
// triple slash refs
|
||||
describe("triple slash refs", () => {
|
||||
// changes declaration because its emitted in .d.ts file
|
||||
verifyOutFileScenario({
|
||||
scenario: "triple slash refs in all projects",
|
||||
modifyFs: fs => {
|
||||
addTripleSlashRef(fs, "lib", "file0");
|
||||
addTripleSlashRef(fs, "app", "file4");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("stripInternal", () => {
|
||||
function stripInternalScenario(fs: vfs.FileSystem) {
|
||||
const internal = "/*@internal*/";
|
||||
replaceText(fs, sources[project.app][source.config], `"composite": true,`, `"composite": true,
|
||||
"stripInternal": true,`);;
|
||||
replaceText(fs, sources[project.lib][source.ts][0], "const", `${internal} const`);
|
||||
appendText(fs, sources[project.lib][source.ts][1], `
|
||||
export class normalC {
|
||||
${internal} constructor() { }
|
||||
${internal} prop: string;
|
||||
${internal} method() { }
|
||||
${internal} get c() { return 10; }
|
||||
${internal} set c(val: number) { }
|
||||
}
|
||||
export namespace normalN {
|
||||
${internal} export class C { }
|
||||
${internal} export function foo() {}
|
||||
${internal} export namespace someNamespace { export class C {} }
|
||||
${internal} export namespace someOther.something { export class someClass {} }
|
||||
${internal} export import someImport = someNamespace.C;
|
||||
${internal} export type internalType = internalC;
|
||||
${internal} export const internalConst = 10;
|
||||
${internal} export enum internalEnum { a, b, c }
|
||||
}
|
||||
${internal} export class internalC {}
|
||||
${internal} export function internalfoo() {}
|
||||
${internal} export namespace internalNamespace { export class someClass {} }
|
||||
${internal} export namespace internalOther.something { export class someClass {} }
|
||||
${internal} export import internalImport = internalNamespace.someClass;
|
||||
${internal} export type internalType = internalC;
|
||||
${internal} export const internalConst = 10;
|
||||
${internal} export enum internalEnum { a, b, c }`);
|
||||
}
|
||||
|
||||
// Verify initial + incremental edits
|
||||
verifyOutFileScenario({
|
||||
scenario: "stripInternal",
|
||||
modifyFs: stripInternalScenario,
|
||||
modifyAgainFs: fs => replaceText(fs, sources[project.lib][source.ts][1], `export const`, `/*@internal*/ export const`),
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -359,4 +359,66 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function enableStrict(fs: vfs.FileSystem, path: string) {
|
||||
replaceText(fs, path, `"strict": false`, `"strict": true`);
|
||||
}
|
||||
|
||||
export function addTestPrologue(fs: vfs.FileSystem, path: string, prologue: string) {
|
||||
prependText(fs, path, `${prologue}
|
||||
`);
|
||||
}
|
||||
|
||||
export function addShebang(fs: vfs.FileSystem, project: string, file: string) {
|
||||
prependText(fs, `src/${project}/${file}.ts`, `#!someshebang ${project} ${file}
|
||||
`);
|
||||
}
|
||||
|
||||
export function restContent(project: string, file: string) {
|
||||
return `function for${project}${file}Rest() {
|
||||
const { b, ...rest } = { a: 10, b: 30, yy: 30 };
|
||||
}`;
|
||||
}
|
||||
|
||||
function nonrestContent(project: string, file: string) {
|
||||
return `function for${project}${file}Rest() { }`;
|
||||
}
|
||||
|
||||
export function addRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
appendText(fs, `src/${project}/${file}.ts`, restContent(project, file));
|
||||
}
|
||||
|
||||
export function removeRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, file));
|
||||
}
|
||||
|
||||
export function addStubFoo(fs: vfs.FileSystem, project: string, file: string) {
|
||||
appendText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file));
|
||||
}
|
||||
|
||||
export function changeStubToRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, file));
|
||||
}
|
||||
|
||||
export function addSpread(fs: vfs.FileSystem, project: string, file: string) {
|
||||
const path = `src/${project}/${file}.ts`;
|
||||
const content = fs.readFileSync(path, "utf8");
|
||||
fs.writeFileSync(path, `${content}
|
||||
function ${project}${file}Spread(...b: number[]) { }
|
||||
${project}${file}Spread(...[10, 20, 30]);`);
|
||||
|
||||
replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false,
|
||||
"downlevelIteration": true,`);
|
||||
}
|
||||
|
||||
export function getTripleSlashRef(project: string) {
|
||||
return `/src/${project}/tripleRef.d.ts`;
|
||||
}
|
||||
|
||||
export function addTripleSlashRef(fs: vfs.FileSystem, project: string, file: string) {
|
||||
fs.writeFileSync(getTripleSlashRef(project), `declare class ${project}${file} { }`);
|
||||
prependText(fs, `src/${project}/${file}.ts`, `///<reference path="./tripleRef.d.ts"/>
|
||||
const ${file}Const = new ${project}${file}();
|
||||
`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
namespace ts {
|
||||
describe("unittests:: tsbuild:: outFile::", () => {
|
||||
let outFileFs: vfs.FileSystem;
|
||||
@@ -174,7 +173,6 @@ namespace ts {
|
||||
...outputFiles[project.first],
|
||||
...outputFiles[project.second],
|
||||
...outputFiles[project.third],
|
||||
outputFiles[project.third][ext.buildinfo],
|
||||
],
|
||||
outputFiles[project.first][ext.buildinfo], // since first build info changes
|
||||
);
|
||||
@@ -443,10 +441,6 @@ namespace ts {
|
||||
describe("Prepend output with .tsbuildinfo", () => {
|
||||
// Prologues
|
||||
describe("Prologues", () => {
|
||||
function enableStrict(fs: vfs.FileSystem, path: string) {
|
||||
replaceText(fs, path, `"strict": false`, `"strict": true`);
|
||||
}
|
||||
|
||||
// Verify initial + incremental edits
|
||||
verifyOutFileScenario({
|
||||
scenario: "strict in all projects",
|
||||
@@ -455,37 +449,32 @@ namespace ts {
|
||||
enableStrict(fs, sources[project.second][source.config]);
|
||||
enableStrict(fs, sources[project.third][source.config]);
|
||||
},
|
||||
modifyAgainFs: fs => addPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue"`)
|
||||
modifyAgainFs: fs => addTestPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue"`)
|
||||
});
|
||||
|
||||
// Verify ignore dtsChanged
|
||||
verifyOutFileScenario({
|
||||
scenario: "strict in one dependency",
|
||||
modifyFs: fs => enableStrict(fs, sources[project.second][source.config]),
|
||||
modifyAgainFs: fs => addPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`),
|
||||
modifyAgainFs: fs => addTestPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`),
|
||||
ignoreDtsChanged: true,
|
||||
baselineOnly: true
|
||||
});
|
||||
|
||||
function addPrologue(fs: vfs.FileSystem, path: string, prologue: string) {
|
||||
prependText(fs, path, `${prologue}
|
||||
`);
|
||||
}
|
||||
|
||||
// Verify initial + incremental edits - sourcemap verification
|
||||
verifyOutFileScenario({
|
||||
scenario: "multiple prologues in all projects",
|
||||
modifyFs: fs => {
|
||||
enableStrict(fs, sources[project.first][source.config]);
|
||||
addPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue"`);
|
||||
addTestPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue"`);
|
||||
enableStrict(fs, sources[project.second][source.config]);
|
||||
addPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`);
|
||||
addPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`);
|
||||
addTestPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`);
|
||||
addTestPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`);
|
||||
enableStrict(fs, sources[project.third][source.config]);
|
||||
addPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue";`);
|
||||
addPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue3";`);
|
||||
addTestPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue";`);
|
||||
addTestPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue3";`);
|
||||
},
|
||||
modifyAgainFs: fs => addPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue5"`)
|
||||
modifyAgainFs: fs => addTestPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue5"`)
|
||||
});
|
||||
|
||||
// Verify ignore dtsChanged
|
||||
@@ -493,11 +482,11 @@ namespace ts {
|
||||
scenario: "multiple prologues in different projects",
|
||||
modifyFs: fs => {
|
||||
enableStrict(fs, sources[project.first][source.config]);
|
||||
addPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`);
|
||||
addPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`);
|
||||
addTestPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`);
|
||||
addTestPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`);
|
||||
enableStrict(fs, sources[project.third][source.config]);
|
||||
},
|
||||
modifyAgainFs: fs => addPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue5"`),
|
||||
modifyAgainFs: fs => addTestPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue5"`),
|
||||
ignoreDtsChanged: true,
|
||||
baselineOnly: true
|
||||
});
|
||||
@@ -505,11 +494,6 @@ namespace ts {
|
||||
|
||||
// Shebang
|
||||
describe("Shebang", () => {
|
||||
function addShebang(fs: vfs.FileSystem, project: string, file: string) {
|
||||
prependText(fs, `src/${project}/${file}.ts`, `#!someshebang ${project} ${file}
|
||||
`);
|
||||
}
|
||||
|
||||
// changes declaration because its emitted in .d.ts file
|
||||
// Verify initial + incremental edits
|
||||
verifyOutFileScenario({
|
||||
@@ -533,32 +517,6 @@ namespace ts {
|
||||
|
||||
// emitHelpers
|
||||
describe("emitHelpers", () => {
|
||||
function restContent(project: string, file: string) {
|
||||
return `function for${project}${file}Rest() {
|
||||
const { b, ...rest } = { a: 10, b: 30, yy: 30 };
|
||||
}`;
|
||||
}
|
||||
|
||||
function nonrestContent(project: string, file: string) {
|
||||
return `function for${project}${file}Rest() { }`;
|
||||
}
|
||||
|
||||
function addRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
appendText(fs, `src/${project}/${file}.ts`, restContent(project, file));
|
||||
}
|
||||
|
||||
function removeRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, file));
|
||||
}
|
||||
|
||||
function addStubFoo(fs: vfs.FileSystem, project: string, file: string) {
|
||||
appendText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file));
|
||||
}
|
||||
|
||||
function changeStubToRest(fs: vfs.FileSystem, project: string, file: string) {
|
||||
replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, file));
|
||||
}
|
||||
|
||||
// Verify initial + incremental edits
|
||||
verifyOutFileScenario({
|
||||
scenario: "emitHelpers in all projects",
|
||||
@@ -582,17 +540,6 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 };
|
||||
baselineOnly: true
|
||||
});
|
||||
|
||||
function addSpread(fs: vfs.FileSystem, project: string, file: string) {
|
||||
const path = `src/${project}/${file}.ts`;
|
||||
const content = fs.readFileSync(path, "utf8");
|
||||
fs.writeFileSync(path, `${content}
|
||||
function ${project}${file}Spread(...b: number[]) { }
|
||||
${project}${file}Spread(...[10, 20, 30]);`);
|
||||
|
||||
replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false,
|
||||
"downlevelIteration": true,`);
|
||||
}
|
||||
|
||||
// Verify ignore dtsChanged
|
||||
verifyOutFileScenario({
|
||||
scenario: "multiple emitHelpers in all projects",
|
||||
@@ -626,17 +573,6 @@ ${project}${file}Spread(...[10, 20, 30]);`);
|
||||
// triple slash refs
|
||||
describe("triple slash refs", () => {
|
||||
// changes declaration because its emitted in .d.ts file
|
||||
function getTripleSlashRef(project: string) {
|
||||
return `/src/${project}/tripleRef.d.ts`;
|
||||
}
|
||||
|
||||
function addTripleSlashRef(fs: vfs.FileSystem, project: string, file: string) {
|
||||
fs.writeFileSync(getTripleSlashRef(project), `declare class ${project}${file} { }`);
|
||||
prependText(fs, `src/${project}/${file}.ts`, `///<reference path="./tripleRef.d.ts"/>
|
||||
const ${file}Const = new ${project}${file}();
|
||||
`);
|
||||
}
|
||||
|
||||
// Verify initial + incremental edits
|
||||
verifyOutFileScenario({
|
||||
scenario: "triple slash refs in all projects",
|
||||
|
||||
@@ -0,0 +1,589 @@
|
||||
//// [/src/app/module.js]
|
||||
"use strict";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>> "use strict";
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(2, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(2, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(2, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(6, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(7, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(7, 12) Source(1, 28) + SourceIndex(1)
|
||||
3 >Emitted(7, 13) Source(1, 29) + SourceIndex(1)
|
||||
4 >Emitted(7, 16) Source(1, 32) + SourceIndex(1)
|
||||
5 >Emitted(7, 17) Source(1, 33) + SourceIndex(1)
|
||||
6 >Emitted(7, 26) Source(1, 34) + SourceIndex(1)
|
||||
7 >Emitted(7, 27) Source(1, 35) + SourceIndex(1)
|
||||
8 >Emitted(7, 28) Source(1, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(18, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(18, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(18, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(18, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(18, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(18, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 17,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 457,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 457,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 457,
|
||||
"end": 658,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 171,
|
||||
"end": 253,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (0-17):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (19-457):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (19-457)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (457-658)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
prepend: (0-171):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (171-253)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(5, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(6, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1)
|
||||
3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1)
|
||||
4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1)
|
||||
5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1)
|
||||
6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1)
|
||||
7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1)
|
||||
8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 89,
|
||||
"end": 106,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 302,
|
||||
"end": 319,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 438,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (89-106):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (302-319):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (0-438)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,812 @@
|
||||
//// [/src/app/module.js]
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
"myPrologueFile";
|
||||
"myPrologue2";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologueFile";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file2.ts","file4.ts","../lib/file1.ts","../lib/global.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ICAZ,gBAAgB,CAAA;ACAhB,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;IFAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AGDpB,IAAM,WAAW,GAAG,EAAE,CAAC;;;ICAvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file2.ts,file4.ts,../lib/file1.ts,../lib/global.ts,file3.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>"use strict";
|
||||
>>>"myPrologue";
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^->
|
||||
1 >
|
||||
2 >"myPrologue"
|
||||
3 >
|
||||
1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0)
|
||||
3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>> "myPrologueFile";
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
1->
|
||||
2 > "myPrologueFile"
|
||||
3 >
|
||||
1->Emitted(3, 5) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(3, 21) Source(1, 17) + SourceIndex(1)
|
||||
3 >Emitted(3, 22) Source(1, 17) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>"myPrologue2";
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^->
|
||||
1 >
|
||||
2 >"myPrologue2"
|
||||
3 > ;
|
||||
1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>var myGlob = 20;
|
||||
1->
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->"myPrologue"
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1->Emitted(5, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(9, 5) Source(1, 14) + SourceIndex(3)
|
||||
2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3)
|
||||
3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3)
|
||||
4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3)
|
||||
5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3)
|
||||
6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(10, 5) Source(1, 21) + SourceIndex(3)
|
||||
2 >Emitted(10, 12) Source(1, 28) + SourceIndex(3)
|
||||
3 >Emitted(10, 13) Source(1, 29) + SourceIndex(3)
|
||||
4 >Emitted(10, 16) Source(1, 32) + SourceIndex(3)
|
||||
5 >Emitted(10, 17) Source(1, 33) + SourceIndex(3)
|
||||
6 >Emitted(10, 26) Source(1, 34) + SourceIndex(3)
|
||||
7 >Emitted(10, 27) Source(1, 35) + SourceIndex(3)
|
||||
8 >Emitted(10, 28) Source(1, 36) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> "myPrologueFile";
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 > "myPrologueFile"
|
||||
3 >
|
||||
1 >Emitted(14, 5) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(14, 21) Source(1, 17) + SourceIndex(1)
|
||||
3 >Emitted(14, 22) Source(1, 17) + SourceIndex(1)
|
||||
---
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->
|
||||
>export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1->Emitted(16, 5) Source(2, 14) + SourceIndex(1)
|
||||
2 >Emitted(16, 13) Source(2, 14) + SourceIndex(1)
|
||||
3 >Emitted(16, 14) Source(2, 15) + SourceIndex(1)
|
||||
4 >Emitted(16, 17) Source(2, 18) + SourceIndex(1)
|
||||
5 >Emitted(16, 19) Source(2, 20) + SourceIndex(1)
|
||||
6 >Emitted(16, 20) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(18, 1) Source(1, 1) + SourceIndex(4)
|
||||
2 >Emitted(18, 5) Source(1, 7) + SourceIndex(4)
|
||||
3 >Emitted(18, 16) Source(1, 18) + SourceIndex(4)
|
||||
4 >Emitted(18, 19) Source(1, 21) + SourceIndex(4)
|
||||
5 >Emitted(18, 21) Source(1, 23) + SourceIndex(4)
|
||||
6 >Emitted(18, 22) Source(1, 24) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> "myPrologue";
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
2 > "myPrologue"
|
||||
3 >
|
||||
1->Emitted(21, 5) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5)
|
||||
3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5)
|
||||
---
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->
|
||||
>export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(23, 5) Source(2, 14) + SourceIndex(5)
|
||||
2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5)
|
||||
3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5)
|
||||
4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5)
|
||||
5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5)
|
||||
6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >"myPrologue2";
|
||||
>
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2)
|
||||
2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2)
|
||||
3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2)
|
||||
4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2)
|
||||
5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2)
|
||||
6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 13,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 15,
|
||||
"end": 28,
|
||||
"kind": "prologue",
|
||||
"data": "myPrologue"
|
||||
},
|
||||
{
|
||||
"pos": 30,
|
||||
"end": 51,
|
||||
"kind": "prologue",
|
||||
"data": "myPrologueFile"
|
||||
},
|
||||
{
|
||||
"pos": 53,
|
||||
"end": 67,
|
||||
"kind": "prologue",
|
||||
"data": "myPrologue2"
|
||||
},
|
||||
{
|
||||
"pos": 69,
|
||||
"end": 530,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 69,
|
||||
"end": 530,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 530,
|
||||
"end": 750,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
"sources": {
|
||||
"prologues": [
|
||||
{
|
||||
"file": 1,
|
||||
"text": "\"myPrologue2\";",
|
||||
"directives": [
|
||||
{
|
||||
"pos": -1,
|
||||
"end": -1,
|
||||
"expression": {
|
||||
"pos": -1,
|
||||
"end": -1,
|
||||
"text": "use strict"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 14,
|
||||
"expression": {
|
||||
"pos": 0,
|
||||
"end": 13,
|
||||
"text": "myPrologue2"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 171,
|
||||
"end": 253,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (0-13):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (15-28):: myPrologue
|
||||
"myPrologue";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (30-51):: myPrologueFile
|
||||
"myPrologueFile";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (53-67):: myPrologue2
|
||||
"myPrologue2";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (69-530):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (69-530)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologueFile";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (530-750)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
prepend: (0-171):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (171-253)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
"use strict";
|
||||
"myPrologue";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologueFile";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AACZ,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>"use strict";
|
||||
>>>"myPrologue";
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^->
|
||||
1 >
|
||||
2 >"myPrologue"
|
||||
3 >
|
||||
1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0)
|
||||
3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0)
|
||||
---
|
||||
>>>var myGlob = 20;
|
||||
1->
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1->Emitted(3, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(7, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(8, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1)
|
||||
3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1)
|
||||
4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1)
|
||||
5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1)
|
||||
6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1)
|
||||
7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1)
|
||||
8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> "myPrologueFile";
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 > "myPrologueFile"
|
||||
3 >
|
||||
1 >Emitted(12, 5) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(12, 21) Source(1, 17) + SourceIndex(2)
|
||||
3 >Emitted(12, 22) Source(1, 17) + SourceIndex(2)
|
||||
---
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->
|
||||
>export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1->Emitted(14, 5) Source(2, 14) + SourceIndex(2)
|
||||
2 >Emitted(14, 13) Source(2, 14) + SourceIndex(2)
|
||||
3 >Emitted(14, 14) Source(2, 15) + SourceIndex(2)
|
||||
4 >Emitted(14, 17) Source(2, 18) + SourceIndex(2)
|
||||
5 >Emitted(14, 19) Source(2, 20) + SourceIndex(2)
|
||||
6 >Emitted(14, 20) Source(2, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 13,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 15,
|
||||
"end": 28,
|
||||
"kind": "prologue",
|
||||
"data": "myPrologue"
|
||||
},
|
||||
{
|
||||
"pos": 119,
|
||||
"end": 136,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 332,
|
||||
"end": 349,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 351,
|
||||
"end": 372,
|
||||
"kind": "prologue",
|
||||
"data": "myPrologueFile"
|
||||
},
|
||||
{
|
||||
"pos": 30,
|
||||
"end": 491,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
"sources": {
|
||||
"prologues": [
|
||||
{
|
||||
"file": 0,
|
||||
"text": "\"myPrologue\"",
|
||||
"directives": [
|
||||
{
|
||||
"pos": -1,
|
||||
"end": -1,
|
||||
"expression": {
|
||||
"pos": -1,
|
||||
"end": -1,
|
||||
"text": "use strict"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 12,
|
||||
"expression": {
|
||||
"pos": 0,
|
||||
"end": 12,
|
||||
"text": "myPrologue"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (0-13):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (15-28):: myPrologue
|
||||
"myPrologue";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (119-136):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (332-349):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (351-372):: myPrologueFile
|
||||
"myPrologueFile";
|
||||
----------------------------------------------------------------------
|
||||
text: (30-491)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
"myPrologueFile";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
@@ -0,0 +1,599 @@
|
||||
//// [/src/app/module.js]
|
||||
#!someshebang lib file0
|
||||
"use strict";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>> "use strict";
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->#!someshebang lib file1
|
||||
>export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(7, 5) Source(2, 14) + SourceIndex(1)
|
||||
2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1)
|
||||
3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1)
|
||||
4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1)
|
||||
5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1)
|
||||
6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(8, 5) Source(2, 21) + SourceIndex(1)
|
||||
2 >Emitted(8, 12) Source(2, 28) + SourceIndex(1)
|
||||
3 >Emitted(8, 13) Source(2, 29) + SourceIndex(1)
|
||||
4 >Emitted(8, 16) Source(2, 32) + SourceIndex(1)
|
||||
5 >Emitted(8, 17) Source(2, 33) + SourceIndex(1)
|
||||
6 >Emitted(8, 26) Source(2, 34) + SourceIndex(1)
|
||||
7 >Emitted(8, 27) Source(2, 35) + SourceIndex(1)
|
||||
8 >Emitted(8, 28) Source(2, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->#!someshebang app file3
|
||||
>export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(19, 5) Source(2, 14) + SourceIndex(4)
|
||||
2 >Emitted(19, 13) Source(2, 14) + SourceIndex(4)
|
||||
3 >Emitted(19, 14) Source(2, 15) + SourceIndex(4)
|
||||
4 >Emitted(19, 17) Source(2, 18) + SourceIndex(4)
|
||||
5 >Emitted(19, 19) Source(2, 20) + SourceIndex(4)
|
||||
6 >Emitted(19, 20) Source(2, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(21, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(21, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(21, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(21, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(21, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(21, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 42,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 44,
|
||||
"end": 482,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 44,
|
||||
"end": 482,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 482,
|
||||
"end": 683,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 196,
|
||||
"end": 278,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (25-42):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (44-482):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (44-482)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (482-683)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
prepend: (25-196):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (25-196)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (196-278)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/file1.ts]
|
||||
#!someshebang lib file1
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
#!someshebang lib file0
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->#!someshebang lib file1
|
||||
>export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(6, 5) Source(2, 14) + SourceIndex(1)
|
||||
2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1)
|
||||
3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1)
|
||||
4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1)
|
||||
5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1)
|
||||
6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(7, 5) Source(2, 21) + SourceIndex(1)
|
||||
2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1)
|
||||
3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1)
|
||||
4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1)
|
||||
5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1)
|
||||
6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1)
|
||||
7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1)
|
||||
8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 114,
|
||||
"end": 131,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 327,
|
||||
"end": 344,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 463,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (114-131):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (327-344):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (25-463)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
text: (25-196)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,739 @@
|
||||
//// [/src/app/module.js]
|
||||
"use strict";
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file0Const = new libfile0();
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file4Const = new appfile4();
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>> "use strict";
|
||||
>>>///<reference path="./tripleRef.d.ts"/>
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 >///<reference path="./tripleRef.d.ts"/>
|
||||
1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 40) Source(1, 40) + SourceIndex(0)
|
||||
---
|
||||
>>>var file0Const = new libfile0();
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^^^
|
||||
6 > ^^^^^^^^
|
||||
7 > ^^
|
||||
8 > ^
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > file0Const
|
||||
4 > =
|
||||
5 > new
|
||||
6 > libfile0
|
||||
7 > ()
|
||||
8 > ;
|
||||
1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(3, 15) Source(2, 17) + SourceIndex(0)
|
||||
4 >Emitted(3, 18) Source(2, 20) + SourceIndex(0)
|
||||
5 >Emitted(3, 22) Source(2, 24) + SourceIndex(0)
|
||||
6 >Emitted(3, 30) Source(2, 32) + SourceIndex(0)
|
||||
7 >Emitted(3, 32) Source(2, 34) + SourceIndex(0)
|
||||
8 >Emitted(3, 33) Source(2, 35) + SourceIndex(0)
|
||||
---
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(4, 5) Source(3, 7) + SourceIndex(0)
|
||||
3 >Emitted(4, 11) Source(3, 13) + SourceIndex(0)
|
||||
4 >Emitted(4, 14) Source(3, 16) + SourceIndex(0)
|
||||
5 >Emitted(4, 16) Source(3, 18) + SourceIndex(0)
|
||||
6 >Emitted(4, 17) Source(3, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(8, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(8, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(8, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(8, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(8, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(8, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(9, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(9, 12) Source(1, 28) + SourceIndex(1)
|
||||
3 >Emitted(9, 13) Source(1, 29) + SourceIndex(1)
|
||||
4 >Emitted(9, 16) Source(1, 32) + SourceIndex(1)
|
||||
5 >Emitted(9, 17) Source(1, 33) + SourceIndex(1)
|
||||
6 >Emitted(9, 26) Source(1, 34) + SourceIndex(1)
|
||||
7 >Emitted(9, 27) Source(1, 35) + SourceIndex(1)
|
||||
8 >Emitted(9, 28) Source(1, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(14, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(14, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(14, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(14, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(14, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(14, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(20, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(20, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(20, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(20, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(20, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(20, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>///<reference path="./tripleRef.d.ts"/>
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 >///<reference path="./tripleRef.d.ts"/>
|
||||
1 >Emitted(22, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(22, 40) Source(1, 40) + SourceIndex(5)
|
||||
---
|
||||
>>>var file4Const = new appfile4();
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^^^
|
||||
6 > ^^^^^^^^
|
||||
7 > ^^
|
||||
8 > ^
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > file4Const
|
||||
4 > =
|
||||
5 > new
|
||||
6 > appfile4
|
||||
7 > ()
|
||||
8 > ;
|
||||
1 >Emitted(23, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(23, 5) Source(2, 7) + SourceIndex(5)
|
||||
3 >Emitted(23, 15) Source(2, 17) + SourceIndex(5)
|
||||
4 >Emitted(23, 18) Source(2, 20) + SourceIndex(5)
|
||||
5 >Emitted(23, 22) Source(2, 24) + SourceIndex(5)
|
||||
6 >Emitted(23, 30) Source(2, 32) + SourceIndex(5)
|
||||
7 >Emitted(23, 32) Source(2, 34) + SourceIndex(5)
|
||||
8 >Emitted(23, 33) Source(2, 35) + SourceIndex(5)
|
||||
---
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(24, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(24, 5) Source(3, 7) + SourceIndex(5)
|
||||
3 >Emitted(24, 10) Source(3, 12) + SourceIndex(5)
|
||||
4 >Emitted(24, 13) Source(3, 15) + SourceIndex(5)
|
||||
5 >Emitted(24, 15) Source(3, 17) + SourceIndex(5)
|
||||
6 >Emitted(24, 16) Source(3, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 17,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 532,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 532,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 532,
|
||||
"end": 808,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 39,
|
||||
"kind": "reference",
|
||||
"data": "tripleRef.d.ts"
|
||||
},
|
||||
{
|
||||
"pos": 41,
|
||||
"end": 87,
|
||||
"kind": "reference",
|
||||
"data": "../lib/tripleRef.d.ts"
|
||||
},
|
||||
{
|
||||
"pos": 89,
|
||||
"end": 297,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 89,
|
||||
"end": 297,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 297,
|
||||
"end": 416,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (0-17):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (19-532):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (19-532)
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file0Const = new libfile0();
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (532-808)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file4Const = new appfile4();
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
reference: (0-39):: tripleRef.d.ts
|
||||
/// <reference path="tripleRef.d.ts" />
|
||||
----------------------------------------------------------------------
|
||||
reference: (41-87):: ../lib/tripleRef.d.ts
|
||||
/// <reference path="../lib/tripleRef.d.ts" />
|
||||
----------------------------------------------------------------------
|
||||
prepend: (89-297):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (89-297)
|
||||
declare const file0Const: libfile0;
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (297-416)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const file4Const: appfile4;
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/file1.ts]
|
||||
export const x = 10;console.log(x);
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file0Const = new libfile0();
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>///<reference path="./tripleRef.d.ts"/>
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 >///<reference path="./tripleRef.d.ts"/>
|
||||
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0)
|
||||
---
|
||||
>>>var file0Const = new libfile0();
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^^^
|
||||
6 > ^^^^^^^^
|
||||
7 > ^^
|
||||
8 > ^
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > file0Const
|
||||
4 > =
|
||||
5 > new
|
||||
6 > libfile0
|
||||
7 > ()
|
||||
8 > ;
|
||||
1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0)
|
||||
4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0)
|
||||
5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0)
|
||||
6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0)
|
||||
7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0)
|
||||
8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0)
|
||||
---
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0)
|
||||
3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0)
|
||||
4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0)
|
||||
5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0)
|
||||
6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^->
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(7, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
2 > ^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^
|
||||
7 > ^
|
||||
8 > ^
|
||||
1->
|
||||
2 > console
|
||||
3 > .
|
||||
4 > log
|
||||
5 > (
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(8, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1)
|
||||
3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1)
|
||||
4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1)
|
||||
5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1)
|
||||
6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1)
|
||||
7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1)
|
||||
8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 164,
|
||||
"end": 181,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 377,
|
||||
"end": 394,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 513,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 39,
|
||||
"kind": "reference",
|
||||
"data": "tripleRef.d.ts"
|
||||
},
|
||||
{
|
||||
"pos": 41,
|
||||
"end": 249,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (164-181):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (377-394):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (0-513)
|
||||
///<reference path="./tripleRef.d.ts"/>
|
||||
var file0Const = new libfile0();
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
console.log(exports.x);
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
reference: (0-39):: tripleRef.d.ts
|
||||
/// <reference path="tripleRef.d.ts" />
|
||||
----------------------------------------------------------------------
|
||||
text: (41-249)
|
||||
declare const file0Const: libfile0;
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,854 @@
|
||||
//// [/src/app/module.d.ts]
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/app/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"}
|
||||
|
||||
//// [/src/app/module.d.ts.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.d.ts
|
||||
mapUrl: module.d.ts.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare const myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > myGlob
|
||||
5 > = 20
|
||||
6 > ;
|
||||
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0)
|
||||
3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0)
|
||||
4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0)
|
||||
5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file1" {
|
||||
>>> export const x = 10;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > x
|
||||
6 > = 10
|
||||
7 > ;
|
||||
1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1)
|
||||
3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1)
|
||||
4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1)
|
||||
5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1)
|
||||
6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1)
|
||||
7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare module "file2" {
|
||||
>>> export const y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > y
|
||||
6 > = 20
|
||||
7 > ;
|
||||
1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2)
|
||||
3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2)
|
||||
4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2)
|
||||
5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2)
|
||||
6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2)
|
||||
7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > globalConst
|
||||
5 > = 10
|
||||
6 > ;
|
||||
1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3)
|
||||
3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3)
|
||||
4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3)
|
||||
5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file3" {
|
||||
>>> export const z = 30;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > z
|
||||
6 > = 30
|
||||
7 > ;
|
||||
1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4)
|
||||
2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4)
|
||||
3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4)
|
||||
4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4)
|
||||
5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4)
|
||||
6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4)
|
||||
7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const myVar = 30;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^->
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > myVar
|
||||
5 > = 30
|
||||
6 > ;
|
||||
1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5)
|
||||
3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5)
|
||||
4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5)
|
||||
5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/app/module.js]
|
||||
"use strict";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>> "use strict";
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(2, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(2, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(2, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(6, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(17, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(17, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(17, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(17, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(17, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(17, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 17,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 428,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 19,
|
||||
"end": 428,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 499,
|
||||
"end": 516,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 428,
|
||||
"end": 629,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 171,
|
||||
"end": 253,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (0-17):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (19-428):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (19-428)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prologue: (499-516):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (428-629)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
prepend: (0-171):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (171-253)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/module.d.ts]
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/lib/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"}
|
||||
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.d.ts
|
||||
mapUrl: module.d.ts.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare const myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > myGlob
|
||||
5 > = 20
|
||||
6 > ;
|
||||
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0)
|
||||
3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0)
|
||||
4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0)
|
||||
5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file1" {
|
||||
>>> export const x = 10;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > x
|
||||
6 > = 10
|
||||
7 > ;
|
||||
1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1)
|
||||
3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1)
|
||||
4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1)
|
||||
5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1)
|
||||
6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1)
|
||||
7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare module "file2" {
|
||||
>>> export const y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > y
|
||||
6 > = 20
|
||||
7 > ;
|
||||
1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2)
|
||||
3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2)
|
||||
4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2)
|
||||
5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2)
|
||||
6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2)
|
||||
7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
7 > ^^^^->
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > globalConst
|
||||
5 > = 10
|
||||
6 > ;
|
||||
1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3)
|
||||
3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3)
|
||||
4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3)
|
||||
5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(5, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 89,
|
||||
"end": 106,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 273,
|
||||
"end": 290,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 409,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 171,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (89-106):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (273-290):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (0-409)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
text: (0-171)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,885 @@
|
||||
//// [/src/app/file3.ts]
|
||||
#!someshebang app file3
|
||||
export const z = 30;
|
||||
import { x } from "file1";
|
||||
|
||||
//// [/src/app/module.d.ts]
|
||||
#!someshebang lib file0
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/app/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC"}
|
||||
|
||||
//// [/src/app/module.d.ts.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.d.ts
|
||||
mapUrl: module.d.ts.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>>declare const myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >
|
||||
3 > const
|
||||
4 > myGlob
|
||||
5 > = 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0)
|
||||
3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0)
|
||||
4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0)
|
||||
5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file1" {
|
||||
>>> export const x = 10;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >#!someshebang lib file1
|
||||
>
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > x
|
||||
6 > = 10
|
||||
7 > ;
|
||||
1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1)
|
||||
4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1)
|
||||
5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1)
|
||||
6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1)
|
||||
7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare module "file2" {
|
||||
>>> export const y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > y
|
||||
6 > = 20
|
||||
7 > ;
|
||||
1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2)
|
||||
3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2)
|
||||
4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2)
|
||||
5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2)
|
||||
6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2)
|
||||
7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > globalConst
|
||||
5 > = 10
|
||||
6 > ;
|
||||
1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3)
|
||||
3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3)
|
||||
4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3)
|
||||
5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file3" {
|
||||
>>> export const z = 30;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >#!someshebang app file3
|
||||
>
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > z
|
||||
6 > = 30
|
||||
7 > ;
|
||||
1 >Emitted(11, 5) Source(2, 1) + SourceIndex(4)
|
||||
2 >Emitted(11, 11) Source(2, 7) + SourceIndex(4)
|
||||
3 >Emitted(11, 12) Source(2, 8) + SourceIndex(4)
|
||||
4 >Emitted(11, 18) Source(2, 14) + SourceIndex(4)
|
||||
5 >Emitted(11, 19) Source(2, 15) + SourceIndex(4)
|
||||
6 >Emitted(11, 24) Source(2, 20) + SourceIndex(4)
|
||||
7 >Emitted(11, 25) Source(2, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.d.ts
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const myVar = 30;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^->
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > myVar
|
||||
5 > = 30
|
||||
6 > ;
|
||||
1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5)
|
||||
3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5)
|
||||
4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5)
|
||||
5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/app/module.js]
|
||||
#!someshebang lib file0
|
||||
"use strict";
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>> "use strict";
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->#!someshebang lib file1
|
||||
>export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(7, 5) Source(2, 14) + SourceIndex(1)
|
||||
2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1)
|
||||
3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1)
|
||||
4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1)
|
||||
5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1)
|
||||
6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:../lib/global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file3.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file3", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.z = 30;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->#!someshebang app file3
|
||||
>export const
|
||||
2 >
|
||||
3 > z
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(18, 5) Source(2, 14) + SourceIndex(4)
|
||||
2 >Emitted(18, 13) Source(2, 14) + SourceIndex(4)
|
||||
3 >Emitted(18, 14) Source(2, 15) + SourceIndex(4)
|
||||
4 >Emitted(18, 17) Source(2, 18) + SourceIndex(4)
|
||||
5 >Emitted(18, 19) Source(2, 20) + SourceIndex(4)
|
||||
6 >Emitted(18, 20) Source(2, 21) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
sourceFile:file4.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var myVar = 30;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > myVar
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/app/",
|
||||
"sourceFiles": [
|
||||
"/src/app/file3.ts",
|
||||
"/src/app/file4.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 42,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 44,
|
||||
"end": 453,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 44,
|
||||
"end": 453,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 524,
|
||||
"end": 541,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 453,
|
||||
"end": 654,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.d.ts",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 196,
|
||||
"end": 278,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/app/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/app/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (25-42):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prepend: (44-453):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (44-453)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prologue: (524-541):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (453-654)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.z = 30;
|
||||
});
|
||||
var myVar = 30;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/app/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
prepend: (25-196):: /src/lib/module.d.ts texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (25-196)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (196-278)
|
||||
declare module "file3" {
|
||||
export const z = 30;
|
||||
}
|
||||
declare const myVar = 30;
|
||||
|
||||
======================================================================
|
||||
|
||||
//// [/src/lib/file0.ts]
|
||||
#!someshebang lib file0
|
||||
const myGlob = 20;
|
||||
|
||||
//// [/src/lib/file1.ts]
|
||||
#!someshebang lib file1
|
||||
export const x = 10;
|
||||
|
||||
//// [/src/lib/module.d.ts]
|
||||
#!someshebang lib file0
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/lib/module.d.ts.map]
|
||||
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"}
|
||||
|
||||
//// [/src/lib/module.d.ts.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.d.ts
|
||||
mapUrl: module.d.ts.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>>declare const myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >
|
||||
3 > const
|
||||
4 > myGlob
|
||||
5 > = 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0)
|
||||
3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0)
|
||||
4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0)
|
||||
5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>declare module "file1" {
|
||||
>>> export const x = 10;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >#!someshebang lib file1
|
||||
>
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > x
|
||||
6 > = 10
|
||||
7 > ;
|
||||
1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1)
|
||||
4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1)
|
||||
5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1)
|
||||
6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1)
|
||||
7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare module "file2" {
|
||||
>>> export const y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^
|
||||
7 > ^
|
||||
1 >
|
||||
2 > export
|
||||
3 >
|
||||
4 > const
|
||||
5 > y
|
||||
6 > = 20
|
||||
7 > ;
|
||||
1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2)
|
||||
3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2)
|
||||
4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2)
|
||||
5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2)
|
||||
6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2)
|
||||
7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.d.ts
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>}
|
||||
>>>declare const globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^
|
||||
5 > ^^^^^
|
||||
6 > ^
|
||||
7 > ^^^^->
|
||||
1 >
|
||||
2 >
|
||||
3 > const
|
||||
4 > globalConst
|
||||
5 > = 10
|
||||
6 > ;
|
||||
1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3)
|
||||
3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3)
|
||||
4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3)
|
||||
5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.d.ts.map
|
||||
|
||||
//// [/src/lib/module.js]
|
||||
#!someshebang lib file0
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
JsFile: module.js
|
||||
mapUrl: module.js.map
|
||||
sourceRoot:
|
||||
sources: file0.ts,file1.ts,file2.ts,global.ts
|
||||
===================================================================
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file0.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>#!someshebang lib file0
|
||||
>>>var myGlob = 20;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >#!someshebang lib file0
|
||||
>
|
||||
2 >const
|
||||
3 > myGlob
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0)
|
||||
3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0)
|
||||
4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0)
|
||||
5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0)
|
||||
6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file1.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>define("file1", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.x = 10;
|
||||
1->^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1->#!someshebang lib file1
|
||||
>export const
|
||||
2 >
|
||||
3 > x
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(6, 5) Source(2, 14) + SourceIndex(1)
|
||||
2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1)
|
||||
3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1)
|
||||
4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1)
|
||||
5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1)
|
||||
6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:file2.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>define("file2", ["require", "exports"], function (require, exports) {
|
||||
>>> "use strict";
|
||||
>>> Object.defineProperty(exports, "__esModule", { value: true });
|
||||
>>> exports.y = 20;
|
||||
1 >^^^^
|
||||
2 > ^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
1 >export const
|
||||
2 >
|
||||
3 > y
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
sourceFile:global.ts
|
||||
-------------------------------------------------------------------
|
||||
>>>});
|
||||
>>>var globalConst = 10;
|
||||
1 >
|
||||
2 >^^^^
|
||||
3 > ^^^^^^^^^^^
|
||||
4 > ^^^
|
||||
5 > ^^
|
||||
6 > ^
|
||||
7 > ^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 >const
|
||||
3 > globalConst
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo]
|
||||
{
|
||||
"bundle": {
|
||||
"commonSourceDirectory": "/src/lib/",
|
||||
"sourceFiles": [
|
||||
"/src/lib/file0.ts",
|
||||
"/src/lib/file1.ts",
|
||||
"/src/lib/file2.ts",
|
||||
"/src/lib/global.ts"
|
||||
],
|
||||
"js": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 114,
|
||||
"end": 131,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 298,
|
||||
"end": 315,
|
||||
"kind": "prologue",
|
||||
"data": "use strict"
|
||||
},
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 434,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dts": {
|
||||
"sections": [
|
||||
{
|
||||
"pos": 25,
|
||||
"end": 196,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//// [/src/lib/module.tsbuildinfo.baseline.txt]
|
||||
======================================================================
|
||||
File:: /src/lib/module.js
|
||||
----------------------------------------------------------------------
|
||||
prologue: (114-131):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
prologue: (298-315):: use strict
|
||||
"use strict";
|
||||
----------------------------------------------------------------------
|
||||
text: (25-434)
|
||||
var myGlob = 20;
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.x = 10;
|
||||
});
|
||||
define("file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = 20;
|
||||
});
|
||||
var globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
======================================================================
|
||||
File:: /src/lib/module.d.ts
|
||||
----------------------------------------------------------------------
|
||||
text: (25-196)
|
||||
declare const myGlob = 20;
|
||||
declare module "file1" {
|
||||
export const x = 10;
|
||||
}
|
||||
declare module "file2" {
|
||||
export const y = 20;
|
||||
}
|
||||
declare const globalConst = 10;
|
||||
|
||||
======================================================================
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2
tests/projects/amdModulesWithOut/app/file3.ts
Normal file
2
tests/projects/amdModulesWithOut/app/file3.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const z = 30;
|
||||
import { x } from "file1";
|
||||
1
tests/projects/amdModulesWithOut/app/file4.ts
Normal file
1
tests/projects/amdModulesWithOut/app/file4.ts
Normal file
@@ -0,0 +1 @@
|
||||
const myVar = 30;
|
||||
15
tests/projects/amdModulesWithOut/app/tsconfig.json
Normal file
15
tests/projects/amdModulesWithOut/app/tsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "amd",
|
||||
"composite": true,
|
||||
"strict": false,
|
||||
"sourceMap": true,
|
||||
"declarationMap": true,
|
||||
"outFile": "module.js"
|
||||
},
|
||||
"exclude": ["module.d.ts"]
|
||||
"references": [
|
||||
{ "path": "../lib", "prepend": true }
|
||||
]
|
||||
}
|
||||
1
tests/projects/amdModulesWithOut/lib/file0.ts
Normal file
1
tests/projects/amdModulesWithOut/lib/file0.ts
Normal file
@@ -0,0 +1 @@
|
||||
const myGlob = 20;
|
||||
1
tests/projects/amdModulesWithOut/lib/file1.ts
Normal file
1
tests/projects/amdModulesWithOut/lib/file1.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const x = 10;
|
||||
1
tests/projects/amdModulesWithOut/lib/file2.ts
Normal file
1
tests/projects/amdModulesWithOut/lib/file2.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const y = 20;
|
||||
1
tests/projects/amdModulesWithOut/lib/global.ts
Normal file
1
tests/projects/amdModulesWithOut/lib/global.ts
Normal file
@@ -0,0 +1 @@
|
||||
const globalConst = 10;
|
||||
13
tests/projects/amdModulesWithOut/lib/tsconfig.json
Normal file
13
tests/projects/amdModulesWithOut/lib/tsconfig.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "amd",
|
||||
"composite": true,
|
||||
"sourceMap": true,
|
||||
"declarationMap": true,
|
||||
"strict": false,
|
||||
"outFile": "module.js"
|
||||
},
|
||||
"exclude": ["module.d.ts"]
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user