Socket
Socket
Sign inDemoInstall

weex-vue-loader

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weex-vue-loader - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

1

lib/loader.js

@@ -164,2 +164,3 @@ // @todo: support hot reload

if (type === 'styles') {
loader = addCssModulesToLoader(loader, part, index)

@@ -166,0 +167,0 @@ // while lang existed, the `style-loader` is also needed.

13

lib/style-loader.js

@@ -5,3 +5,3 @@ var styler = require('weex-styler')

this.cacheable && this.cacheable()
return 'module.exports = ' + genStyleString(content, this)
return 'module.exports = ' + genStyleString(content)
}

@@ -29,3 +29,3 @@

function genStyleString (input, loader) {
function genStyleString (input) {
var output = '{}'

@@ -37,11 +37,2 @@ styler.parse(input, function (err, obj) {

if (obj && obj.jsonStyle) {
if (obj.log) {
obj.log.map((log) => {
if (log.selectors) {
loader.emitWarning(`${log.selectors}: ${log.reason}`)
} else {
loader.emitWarning(`${log.reason}`)
}
})
}
try {

@@ -48,0 +39,0 @@ output = JSON.stringify(obj.jsonStyle, convertLength, 2)

{
"name": "weex-vue-loader",
"version": "0.5.1",
"version": "0.5.2",
"description": "Vue.js component loader for Webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc