svelte-preprocess
Advanced tools
Comparing version 3.7.1 to 3.7.2
@@ -0,1 +1,10 @@ | ||
## [3.7.2](https://github.com/kaisermann/svelte-preprocess/compare/v3.7.1...v3.7.2) (2020-04-21) | ||
### Bug Fixes | ||
* 🐛 add `bare: true` to coffee compiler ([7d38bfd](https://github.com/kaisermann/svelte-preprocess/commit/7d38bfde34b6fafeca7e8df490348fd2004cdb1a)), closes [#134](https://github.com/kaisermann/svelte-preprocess/issues/134) | ||
## [3.7.1](https://github.com/kaisermann/svelte-preprocess/compare/v3.7.0...v3.7.1) (2020-03-29) | ||
@@ -2,0 +11,0 @@ |
@@ -1,1 +0,1 @@ | ||
"use strict";var __importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!0});const coffeescript_1=__importDefault(require("coffeescript")),transformer=({content:a,filename:b,options:c})=>{const{js:d,sourceMap:e}=coffeescript_1.default.compile(a,{filename:b,sourceMap:!0,...c});return{code:d,map:e}};exports.default=transformer; | ||
"use strict";var __importDefault=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(exports,"__esModule",{value:!0});const coffeescript_1=__importDefault(require("coffeescript")),transformer=({content:a,filename:b,options:c})=>{const{js:d,sourceMap:e}=coffeescript_1.default.compile(a,{filename:b,sourceMap:!0,bare:!1,...c});return{code:d,map:e}};exports.default=transformer; |
{ | ||
"name": "svelte-preprocess", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -352,3 +352,3 @@ ![](https://github.com/kaisermann/svelte-preprocess/workflows/CI/badge.svg) | ||
sveltePreprocess({ /* svelte-preprocess options */ }), | ||
msdvex({ /* mdsvex options */ }) | ||
mdsvex({ /* mdsvex options */ }) | ||
], | ||
@@ -572,2 +572,17 @@ } | ||
#### Svelte Element directives | ||
Syntax for use Svelte Element directives with Pug | ||
```pug | ||
input(bind:value="{foo}") | ||
input(on:input="{bar}") | ||
``` | ||
### `coffeescript` | ||
#### Safety wrapper | ||
Since `coffeescript` transpiles variables to `var` definitions, it uses a safety mechanism to prevent variables from bleeding to outside contexts. This mechanism consists of wrapping your `coffeescript` code inside an IIFE which, unfortunately, prevents `svelte` from finding your variables. To bypass this behavior, `svelte-preprocess` sets the [`bare` coffeescript compiler option](https://coffeescript.org/#lexical-scope) to `true`. | ||
## FAQ | ||
@@ -574,0 +589,0 @@ |
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
68086
615