rollup-plugin-vue
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -22,9 +22,8 @@ 'use strict'; | ||
if (node.attrs) { | ||
var i = node.attrs.length; | ||
while (i > 0) { | ||
var attr = node.attrs[i]; | ||
for (var i = 0, list = node.attrs; i < list.length; i += 1) { | ||
var attr = list[i]; | ||
if (attr.name === 'lang') { | ||
return attr.value; | ||
} | ||
i -= 1; | ||
} | ||
@@ -178,4 +177,4 @@ } | ||
var template = nodes.template | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
var js; | ||
@@ -182,0 +181,0 @@ if (options.compileTemplate) { |
@@ -18,9 +18,8 @@ import { createFilter } from 'rollup-pluginutils'; | ||
if (node.attrs) { | ||
var i = node.attrs.length; | ||
while (i > 0) { | ||
var attr = node.attrs[i]; | ||
for (var i = 0, list = node.attrs; i < list.length; i += 1) { | ||
var attr = list[i]; | ||
if (attr.name === 'lang') { | ||
return attr.value; | ||
} | ||
i -= 1; | ||
} | ||
@@ -174,4 +173,4 @@ } | ||
var template = nodes.template | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
var js; | ||
@@ -178,0 +177,0 @@ if (options.compileTemplate) { |
{ | ||
"name": "rollup-plugin-vue", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Roll .vue files", | ||
@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-vue.common.js", |
@@ -16,9 +16,6 @@ import deIndent from 'de-indent'; | ||
if (node.attrs) { | ||
let i = node.attrs.length; | ||
while (i > 0) { | ||
const attr = node.attrs[i]; | ||
for (const attr of node.attrs) { | ||
if (attr.name === 'lang') { | ||
return attr.value; | ||
} | ||
i -= 1; | ||
} | ||
@@ -171,4 +168,4 @@ } | ||
const template = nodes.template | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
? processTemplate(nodes.template, filePath, code, options) | ||
: undefined; | ||
let js; | ||
@@ -175,0 +172,0 @@ if (options.compileTemplate) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38943
952