orlov-vo / parcel-transformer-svelte

Parcel 2 transformer for Svelte 3
https://www.npmjs.com/package/parcel-transformer-svelte
MIT License
40 stars 18 forks source link

Incompatible with `svelte-routing`: `'Svelte config should be an object.'` #18

Closed erincar closed 2 years ago

erincar commented 3 years ago

Hello,

Thanks for this project. I have been using this library for a personal project, to bind Parcel 2, Svelte 3, TailwindCSS and other PostCSS functionalities.

I installed svelte-routing on my project and simply added the import line to my App.svelte:

import { Router, Link, Route } from "svelte-routing";

However, the loadConfig.js seemed unable to parse the "svelte" options of this library, which resides in their package.json and is simply "svelte": "src/index.js".

I assume that this usage is legit, so maybe the config loader should either ignore this library or be able to load from file path.

Here is the repo for reference.

Thanks!

jianzhou520 commented 2 years ago

same problem. I tried many other routings, none of these can worked.

BAPostma commented 2 years ago

With my PR #26 this issue is fixed and can be closed. @orlov-vo Would you mind pushing a new release to NPM for this fix please? Thanks!

orlov-vo commented 2 years ago

@erincar @BAPostma I've released it in v1.2.3 to npm

erincar commented 2 years ago

Appreciated! Best.