Skip to content

Conversation

@willemneal
Copy link
Contributor

fixes #831

  • changed asinit to executable.

console.log(sourceMap.sources)
for (const index in sourceMap.sources) {
let internalPath = sourceMap.sources[index].replace(/\.ts$/, "");
let source = program.sources.find(source => source.internalPath === internalPath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calls into the compiler without using a C-like API, hence is non-portable once we can compile the compiler itself to Wasm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I had a feeling this was too easy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But wait. This already happened before:

stderr.write(program.sources.map(s => s.normalizedPath).sort().join(EOL) + EOL);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, appears this made it through review before.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol my bad. I think instead we should just keep a local map of internal paths to texts and external paths for the resolver.

@dcodeIO
Copy link
Member

dcodeIO commented Sep 20, 2019

Should be fixed in #846

@willemneal willemneal closed this Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong paths for node modules with cli --sourceMap option

3 participants