2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-12 21:57:50 +00:00

Typo fix in packages/svelte/build.js

Just a quick typo fix found on `packages/svelte/build.js` @ `171`: 
https://github.com/iconify/iconify/blob/master/packages/svelte/build.js#L171

And with the two letters in their proper places... voila:

```js
if (svelteParts.length < 2) {
```

That is all for now, thanks 😁
This commit is contained in:
Nicholas Berlette 2022-02-20 20:40:10 -08:00 committed by GitHub
parent ded43ed8fc
commit ea8d4b8777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ function cleanup() {
.trim()
.replace(/\r/g, '')
.split('\n\n');
if (svelteParts.lenght < 2) {
if (svelteParts.length < 2) {
throw new Error(
'Error parsing svelte.d.ts. Imports and content should be separated by 2 new lines'
);