Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-preprocess - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "svelte-preprocess",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",

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

# Svelte Preprocess
> A magical and customizable [Svelte](https://svelte.technology) preprocessor with support for: PostCSS, SCSS, Less, Stylus, Coffeescript and Pug.
> A customizable [Svelte](https://svelte.technology) preprocessor with support for: PostCSS, SCSS, Less, Stylus, Coffeescript and Pug.

@@ -24,5 +24,5 @@ ## Installation

const svelte = require('svelte')
const magicalPreprocess = require('svelte-preprocess')
const getSveltePreprocessor = require('svelte-preprocess')
svelte.preprocess(input, magicalPreprocess()).then(...)
svelte.preprocess(input, getSveltePreprocessor()).then(...)
```

@@ -34,4 +34,4 @@

const svelte = require('svelte')
const magicalPreprocess = require('svelte-preprocess')
const magicOpts = {
const getSveltePreprocessor = require('svelte-preprocess')
const options = {
/** Transform the whole markup before preprocessing */

@@ -52,3 +52,5 @@ onBefore(content, filename) {

postcss: {
plugins: require('autoprefixer')({ browsers: 'last 2 versions' })
plugins: [
require('autoprefixer')({ browsers: 'last 2 versions' })
]
},

@@ -85,3 +87,3 @@

svelte.preprocess(input, magicalPreprocess(magicOpts)).then(...)
svelte.preprocess(input, getSveltePreprocessor(options)).then(...)
```

@@ -88,0 +90,0 @@

@@ -60,6 +60,3 @@ const stripIndent = require('strip-indent')

if (isFn(onBefore)) {
content = onBefore({
content,
filename,
})
content = onBefore(content, filename)
}

@@ -66,0 +63,0 @@

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