if (isString(node)) return push(node)
const { content: rawExpr, ast, isStatic, loc } = node
- if (__BROWSER__) {
- return push(rawExpr)
+ if (isStatic) {
+ return push(JSON.stringify(rawExpr), NewlineType.None, loc)
}
-
if (
+ __BROWSER__ ||
!context.prefixIdentifiers ||
!node.content.trim() ||
// there was a parsing error
) {
return push(rawExpr, NewlineType.None, loc)
}
- if (isStatic) {
- return push(JSON.stringify(rawExpr), NewlineType.None, loc)
- }
if (ast === null) {
// the expression is a simple identifier