Open Jocelyn-AGORO opened 6 months ago
So you are expecting that these js/ts files default export a object?
Yes, just like this:
// somefile.ts/somefile.js
export default {
foo: "this is foo",
}
and more:
module.exports = {
foo: "this is foo",
}
When trying the plugin and choosing JSON as file type and using *.ts wilcard, I got the following error : Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive; at path $ which I think is due to the plugin trying to load and deserialize the typescript translation files. I think this can be resolve by adding javaScript/Typescript to the supported types and not try to serialize the file content since it will already be plain js objects