svelte-as-markup-preprocessor
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"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 @@ |
5515
Yes