New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-as-markup-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-as-markup-preprocessor - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

out/cjs/index.js

22

package.json
{
"name": "svelte-as-markup-preprocessor",
"version": "0.1.0",
"description": "Removes unwanted whitespace from the markup section of svelte files.",
"main": "out/index.js",
"version": "0.1.1",
"description": "Run any svelte preprocessor to completion in the markup phase",
"main": "out/cjs/index.js",
"module": "out/esm/index.js",
"type":"module",
"exports": {
"import": "./out/esm/index.js",
"require": "./out/cjs/index.js"
},
"scripts": {

@@ -15,3 +21,5 @@ "test": "echo \"Error: no test specified\" && exit 1",

"preprocess": "run-s clean:preprocessed preprocess:typescript",
"preprocess:typescript": "tsc",
"preprocess:typescript": "run-p preprocess:typescript:esm preprocess:typescript:cjs",
"preprocess:typescript:esm": "tsc --module ESNext --outDir \"./out/esm/\"",
"preprocess:typescript:cjs": "tsc",
"prepare": "npm run build",

@@ -21,3 +29,5 @@ "prepublishOnly": "run-p check"

"keywords": [
"svelte"
"svelte",
"preprocess",
"preprocessor"
],

@@ -51,3 +61,3 @@ "files": [

},
"types": "./out/index.d.ts"
"types": "./out/esm/index.d.ts"
}

@@ -17,5 +17,5 @@ # asMarkupPreprocessor

sveltePreprocess(),
otherPreprocessors
someOtherPreprocessor()
]),
dependentMarkupPreprocessor()
dependentMarkupPreprocessor()
]

@@ -25,3 +25,3 @@ }

`asMarkupPreprocessor` is a simple wrapper around [svelte.preprocess](https://svelte.dev/docs#svelte_preprocess), and thus accepts the same arguments as it. If you can put it in [svelte.config.js](https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/in-general.md)'s `preprocess` field, you can pass it into us.
`asMarkupPreprocessor` is a simple wrapper around [svelte.preprocess](https://svelte.dev/docs#svelte_preprocess), and accepts the same `preprocessors` array as it. In other words, anything you could put in [svelte.config.js](https://github.com/sveltejs/language-tools/blob/master/docs/preprocessors/in-general.md)'s `preprocess` field, you can pass into us.

@@ -28,0 +28,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