svelte-preprocess
Advanced tools
Comparing version 4.10.3 to 4.10.4
@@ -0,1 +1,10 @@ | ||
## [4.10.4](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.3...v4.10.4) (2022-02-23) | ||
### Bug Fixes | ||
* only try to load external files with relative paths ([#487](https://github.com/sveltejs/svelte-preprocess/issues/487)) ([80d87ed](https://github.com/sveltejs/svelte-preprocess/commit/80d87edac4723401db47d06ed03bb6cd388c21d9)) | ||
## [4.10.3](https://github.com/sveltejs/svelte-preprocess/compare/v4.10.2...v4.10.3) (2022-02-09) | ||
@@ -2,0 +11,0 @@ |
@@ -76,8 +76,4 @@ "use strict"; | ||
exports.hasDepInstalled = hasDepInstalled; | ||
const REMOTE_SRC_PATTERN = /^(https?:)?\/\//; | ||
function isValidLocalPath(path) { | ||
return (path.match(REMOTE_SRC_PATTERN) == null && | ||
// only literal strings allowed | ||
!path.startsWith('{') && | ||
!path.endsWith('}')); | ||
return path.startsWith('.'); | ||
} | ||
@@ -84,0 +80,0 @@ exports.isValidLocalPath = isValidLocalPath; |
{ | ||
"name": "svelte-preprocess", | ||
"version": "4.10.3", | ||
"version": "4.10.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -77,2 +77,4 @@ # Svelte Preprocess | ||
> Note: using a relative path starting with `.` is important. Otherwise `svelte-preprocess` will ignore the `src` attribute. | ||
### Global style | ||
@@ -79,0 +81,0 @@ |
147085
208
2180