+ if (
+ (
+ base.type === 'Identifier' &&
+ base.name === 'style'
+ ) ||
+ (
+ base.type === 'CallExpression' &&
+ base.callee.type === 'Identifier' &&
+ base.callee.name === 'style'
+ )
+ ) {
+ let render = clean_css.minifyEmbedded(this.input, this.pos)
+ if (render.errors.length)
+ throw render.errors
+ for (let i = 0; i < render.warnings.length; ++i)
+ console.log(`clean-css warning: ${render.warnings[i]}`)
+ node.body = {
+ type: 'BlockStatement',
+ body: [
+ {
+ type: 'ExpressionStatement',
+ expression: {
+ type: 'Literal',
+ value: html_escape(render.styles)
+ }
+ }
+ ]
+ }
+ this.pos = render.embeddedEnd
+ this.next()
+ this.expect(tt.braceR)
+ }
+ else
+ node.body = this.parseBlock(false)