Created
August 20, 2019 02:38
-
-
Save longlho/52a158d3aa30f2ebe0df7accb75ce80c to your computer and use it in GitHub Desktop.
transformer-p6.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (newNode) { | |
// Link external CSS file in source map | |
const externalCssSource = ts.createSourceMapSource( | |
cssPath, | |
readFileSync(cssPath, "utf-8") | |
); | |
ts.setSourceMapRange(newNode, { | |
source: externalCssSource, | |
pos: node.pos, | |
end: node.end | |
}); | |
return newNode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment