komodojp / tinyld

Simple and Performant Language detection library for NodeJS

Home Page:https://komodojp.github.io/tinyld/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working with Deno

kefniark opened this issue · comments

Description

I was trying to use tinyld in a deno project but run into an issue, I can't import the library, it explode for a weird reason.

error: The module's source code could not be parsed: Unexpected character 'ำ'

It seem to be caused by a unique thai character in the profile language (json)

 //...
 : 9,
 : 9,
 : 9,
 : 9,
  : 9, // <= this line
 //...

I opened an issue on deno repo denoland/deno#13468

P.S. apparently a swc issue: swc-project/swc#3341