-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
bugscope: transpileAny transpilation not directly related to code transformsAny transpilation not directly related to code transforms
Description
Steps to reproduce:
- Set up a hello-world TSTL project.
- Add
"resolveJsonModule": trueto thetsconfig.jsonfile. - Make a sample JSON file, something like:
{
"things": [
{
"foo": 1,
"bar": 2
},
{
"foo": 1,
"bar": 2
}
]
}- Use the following
main.tsfile:
import * as thingsJSON from "./things.json"
print(thingsJSON.things[0].foo);- Compile the project, which will produce a
main.luafile and a 0 bytethings.jsonfile in the output directory.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugscope: transpileAny transpilation not directly related to code transformsAny transpilation not directly related to code transforms