# rollup-plugin-lux

> A Rollup plugin for bundling Lux applications.

Latest version **3.0.0** (published 2017-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-lux
pnpm add rollup-plugin-lux
yarn add rollup-plugin-lux
bun add rollup-plugin-lux
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2017-01-16 |
| First published | 2017-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zachary Golba |
| Maintainers | zacharygolba |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-lux
- npm.io page: https://npm.io/package/rollup-plugin-lux

## Dependencies (3)

- [eol](https://npm.io/package/eol.md) 0.5.1
- [acorn](https://npm.io/package/acorn.md) 4.0.4
- [magic-string](https://npm.io/package/magic-string.md) 0.19.0

## Recent versions

- 3.0.0 (latest) — 2017-01-16
- 2.0.6 — 2017-01-16
- 2.0.5 — 2017-01-15
- 2.0.4 — 2017-01-15
- 2.0.3 — 2017-01-15
- 2.0.2 — 2017-01-14
- 2.0.1 — 2017-01-14
- 2.0.0 — 2017-01-14
- 1.0.0 — 2017-01-08

## README

# Rollup Plugin Lux

[![CircleCI branch](https://img.shields.io/circleci/project/github/postlight/rollup-plugin-lux/master.svg?style=flat-square)](https://circleci.com/gh/postlight/rollup-plugin-lux/tree/master) [![AppVeyor](https://img.shields.io/appveyor/ci/zacharygolba/rollup-plugin-lux/master.svg?style=flat-square)](https://ci.appveyor.com/project/zacharygolba/rollup-plugin-lux/branch/master) [![Codecov branch](https://img.shields.io/codecov/c/github/postlight/rollup-plugin-lux/master.svg?style=flat-square)](https://codecov.io/gh/postlight/rollup-plugin-lux) [![David](https://img.shields.io/david/postlight/rollup-plugin-lux.svg?style=flat-square)](https://david-dm.org/postlight/rollup-plugin-lux) [![npm](https://img.shields.io/npm/v/rollup-plugin-lux.svg?style=flat-square)](https://www.npmjs.com/package/rollup-plugin-lux)

[Lux](https://github.com/postlight/lux) uses [Babel](https://github.com/babel/babel)
and [Rollup](https://github.com/rollup/rollup) to bundle applications into a
single file to make module loading and resolution a bit easier. However, this
method does not guarantee that the value of `constructor.name` will be the same
in the bundled output. This plugin allow's [Lux](https://github.com/postlight/lux)
to continue to use this method to resolve dependencies of an application by
appending an `Object.defineProperty` call below each constructor that sub classes
a member of the public [Lux](https://github.com/postlight/lux) API.

*Note:*

> This is a module that [Lux](https://github.com/postlight/lux) uses internally.
> It is not required for users of [Lux](https://github.com/postlight/lux) to add
> this plugin to their `package.json` file.

**Example**

*Before*

```javascript
import { Model } from 'lux-framework';

class User extends Model {

}

export default User;
```

*After*

```javascript
import { Model } from 'lux-framework';

class User extends Model {

}

export default User;

Object.defineProperty(User, 'name', { name: 'User' });
```

## Installation

```bash
git clone https://github.com/postlight/rollup-plugin-lux.git
cd rollup-plugin-lux
npm install
```

## Testing

```bash
npm test
```

## Building

```bash
npm run build
```

---
_Source: https://npm.io/package/rollup-plugin-lux · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
