{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Using Transpilers","type":"basic","slug":"using-transpilers","excerpt":"","body":"## `Natronfile`\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import {src, dest, piper} from \\\"natron-vinyl\\\";\\nimport {transform} from \\\"vinyl-tf-babel\\\";\\n\\nexport function build() {\\n  return piper(src(\\\"src/**/*.js\\\", transform(), dest(\\\"dist\\\"));\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n## `.natronrc`\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"transpiler\\\": \\\"babel\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5619a39a13874c0d007038f0","createdAt":"2015-10-10T22:45:35.350Z","project":"5617a1f5a410c90d00c612f5","user":"5617a0a4a410c90d00c612f4","githubsync":"","__v":1,"category":{"sync":{"isSync":false,"url":""},"pages":["5619a6e1d4b0a90d004c604e","5619a6f7d4b0a90d004c6050"],"title":"Basics","slug":"basics","order":2,"from_sync":false,"reference":false,"_id":"5619a39a13874c0d007038ed","version":"5619a39913874c0d007038e9","__v":2,"project":"5617a1f5a410c90d00c612f5","createdAt":"2015-10-10T22:45:07.366Z"},"version":{"version":"0.2","version_clean":"0.2.0","codename":"Orange Arrow","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["5619a39a13874c0d007038ea","5619a39a13874c0d007038eb","5619a39a13874c0d007038ec","5619a39a13874c0d007038ed","5651062a3b4d113500ed22d1","5651c89a852cfb3500a69830","565505ad055aa40d006f0ca7","56c219d8d3199a0d00694be6"],"_id":"5619a39913874c0d007038e9","createdAt":"2015-10-10T23:47:37.777Z","project":"5617a1f5a410c90d00c612f5","__v":5,"releaseDate":"2015-10-10T23:47:37.777Z"}}
## `Natronfile` [block:code] { "codes": [ { "code": "import {src, dest, piper} from \"natron-vinyl\";\nimport {transform} from \"vinyl-tf-babel\";\n\nexport function build() {\n return piper(src(\"src/**/*.js\", transform(), dest(\"dist\"));\n}", "language": "javascript" } ] } [/block] ## `.natronrc` [block:code] { "codes": [ { "code": "{\n \"transpiler\": \"babel\"\n}", "language": "json" } ] } [/block]