Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,16 @@ async function loadSupportObject(modulePath, supportObjectName) {
for (const [key, value] of mapping.entries()) {
container.tsFileMapping.set(key, value)
}
// Step.line() maps temp paths back through store, not through the
// container, so an include has to land there too. Without this a step
// that originates in an included .ts page object is printed with the
// deleted .temp.mjs sibling. (#5675)
if (!store.tsFileMapping) {
store.tsFileMapping = new Map()
}
for (const [key, value] of mapping.entries()) {
store.tsFileMapping.set(key, value)
}
} catch (tsError) {
throw new Error(`Failed to load TypeScript file ${importPath}: ${tsError.message}. Make sure 'typescript' package is installed.`)
}
Expand Down
Loading