0.5.9 • Published 7 years ago

babel-plugin-lightscript v0.5.9

Weekly downloads
6
License
MIT
Repository
-
Last release
7 years ago

babel-plugin-lightscript

Compiles LightScript to JavasScript when used with Babel.

The plugin only processes files that include .lsc or .lsx in their filenames.

It converts a "LightScript AST" produced by babylon-lightscript into a conventional "Babel AST".

If you are using ES7 features (like import), JSX, and Flow, use babel-preset-lightscript to target ES6 instead of using the plugin directly.

If you are using babel-plugin-lightscript with other plugins, be sure it is the first plugin.

Options

You may disable the standard library:

{
  "plugins": [
    ["lightscript", { "stdlib": false }]
  ]
}

Or disable its inclusion of lodash:

{
  "plugins": [
    ["lightscript", {
      "stdlib": {
        "lodash": false,
      }
    }]
  ]
}

Or tell it to use require() instead of import:

{
  "plugins": [
    ["lightscript", {
      "stdlib": {
        "require": true,
      }
    }]
  ]
}

Contributing

You will need to link babel-plugin-lightscript to itself:

cd babel-plugin-lightscript
npm link
npm link babel-plugin-lightscript
npm install
npm run build
npm test

Please report issues on the main lightscript repo instead of here.

0.5.9

7 years ago

0.5.8

7 years ago

0.5.7

7 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago