{"library":"nanosts-imports-transpiler","title":"NanosWorld Imports Transpiler","description":"A tstl (TypeScript to Lua) compiler plugin that transforms standard TypeScript import statements into Package.Require calls compatible with the NanosWorld Lua sandbox. Version 0.0.7 is the latest stable release; the package has no formal release cadence and is likely in early development. It differentiates itself by bridging TypeScript's module system with NanosWorld's custom loading mechanism, enabling developers to write imports naturally while transpiling to package-relative requires.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install nanosts-imports-transpiler"],"cli":null},"imports":["import { default as plugin } from 'nanosts-imports-transpiler'","import transformer from 'nanosts-imports-transpiler'","// In tstl config (tsconfig.json or lua-transformers): \"nanosts-imports-transpiler\""],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Ensure typescript-to-lua and nanosts-imports-transpiler are installed:\n// npm install --save-dev typescript-to-lua nanosts-imports-transpiler\n\n// In tsconfig.json:\n{\n  \"compilerOptions\": {\n    \"types\": [\"typescript-to-lua\"],\n    \"plugins\": [\n      {\n        \"transform\": \"nanosts-imports-transpiler\",\n        \"import\": \"transform\"\n      }\n    ]\n  }\n}\n\n// Example .ts file:\nimport myModule from \"./myModule.ts\";\nmyModule.doSomething();\n\n// Compile with tstl. The import becomes:\n// local ____importmap_1 = Package.Require(\"./myModule.lua\")\n// local myModule = ____importmap_1.default\n// myModule.doSomething()","lang":"typescript","description":"Shows installation, tstl configuration, and a basic import that gets transformed to a Package.Require call for NanosWorld.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}