Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 82e8142

Browse files
authored
docs: update transpilers article (#1856)
1 parent e725e47 commit 82e8142

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/tooling/transpilers.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Transpilers
33
description: Learn how to enable TypeScript and other transpiler support in your NativeScript project.
4-
position: 30
4+
position: 130
55
slug: transpilers
66
previous_url: /transpilers,/core-concepts/transpilers
77
---
88

99
# Using transpilers in NativeScript
1010

11-
Transpilers allow you to develop your application in languages other than JavaScript, CSS and XML. NativeScript applications can be developed more comfortably when transpilers are used in the project. NativeScript projects support the Babel transpiler out of the box, although any other transpiler can be integrated through the necessary hooks.
11+
Transpilers allow you to develop your application in languages other than JavaScript, CSS and XML. In the common case, an additional transpiler is not needed in NativeScript (version 6.x and above) because the framework is enabling Webpack builds by default. The Webpack build produces already transpiled `bundle.js` file. Use additional transpilers only if you have a specific case which requires it.
1212

1313
## Installing Babel
1414

@@ -23,7 +23,3 @@ The above command installs the Babel compiler and the `nativescript-dev-babel` n
2323
If you want to change the version of the Babel compiler used in your project, simply install the version you want into your project through npm.
2424

2525
If you want to configure Babel, create a `.babelrc` file in the root of your project according to [spec](https://babeljs.io/docs/usage/babelrc/).
26-
27-
## Installing other transpilers
28-
29-
Transpiler support can be extended through the use of hooks. The easiest way to distribute transpiler hooks is by means of npm modules. You can use the implementation of the TypeScript and Babel hooks as reference and grok the [nativescript-hook module](https://github.com/NativeScript/nativescript-hook) that provides common hook installation support to transpiler authors.

0 commit comments

Comments
 (0)