You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`processTypeScriptCode` does not produce source maps at all for type
stripping. Given that the transform mode was removed, there is no need
to keep the source map support around it.
Signed-off-by: Chengzhong Wu <[email protected]>
PR-URL: #63738
Refs: #61803
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
// Get a compile cache entry into the native compile cache store,
170
158
// keyed by the filename. If the cache can already be loaded on disk,
171
159
// cached.transpiled contains the cached string. Otherwise we should do
@@ -178,7 +166,6 @@ function stripTypeScriptModuleTypes(source, filename, sourceURL) {
178
166
179
167
constoptions={
180
168
mode: 'strip-only',
181
-
sourceMap,
182
169
filename: sourceURL??filename,
183
170
};
184
171
@@ -194,20 +181,6 @@ function stripTypeScriptModuleTypes(source, filename, sourceURL) {
194
181
returntranspiled;
195
182
}
196
183
197
-
/**
198
-
*
199
-
* @param {string} code The compiled code.
200
-
* @param {string} sourceMap The source map.
201
-
* @returns {string} The code with the source map attached.
202
-
*/
203
-
functionaddSourceMap(code,sourceMap){
204
-
// The base64 encoding should be https://datatracker.ietf.org/doc/html/rfc4648#section-4,
205
-
// not base64url https://datatracker.ietf.org/doc/html/rfc4648#section-5. See data url
0 commit comments