dodo / node-slug

slugifies even utf-8 chars!
MIT License
1.08k stars 92 forks source link

Possibly incompatible with jspm frontend package manager? #40

Closed jedrichards closed 9 years ago

jedrichards commented 9 years ago

After doing a jspm install npm:slug I get an error when trying to use your library.

It looks like its trying to interact with a file So.js related to the unicode dependency. Perhaps it doesn't recognise the jspm SystemJS environment properly? Maybe?

dodo commented 9 years ago

Looks like jspm isn't installing node-unicodetable properly. That package has an additional build step when being installed, which is not required when using in a browser environment.

Do you know a way to tell jspm to ignore unicode/category/So?

dodo commented 9 years ago

derp .. Or you just simply disable symbols by default:

slug.defaults.modes['rfc3986'].symbols = false
slug.defaults.modes['pretty'].symbols = false
jedrichards commented 9 years ago

Gotcha, yeah, that works thanks. Will report back if I discover anything else of importance ...

kiowa commented 9 years ago

How did you import this without triggering the So.js require?