@packmule/javascript-pack
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

JavaScript Pack npm-latest

Transpile JavaScript using Babel.

Internally the JavaScript Pack uses esbuild to transpile the code if needed. To configure compilation targets in your project, a browerslist configuration can be used. Linting code via ESLint can be utilized by creating an .eslintrc file.

Overview

Setup

JavaScript Pack is included in the complete edition.

Current Release

npm install --save-dev @packmule/javascript-pack @babel/core eslint

Nightly Build

npm install --save-dev @packmule/javascript-pack@nightly @babel/core eslint

API

JavaScriptPack()
    .include(glob: string)

Hints

  • cache - Controls cache utilization of the babel-loader.
  • lint - Controls source-code linting via eslint-webpack-plugin.
  • fix - Controls source-code fixing via eslint-webpack-plugin.

Usage

Example

Process JavaScript code.

import Packmule from '@packmule/core';
import JavascriptPack from '@packmule/javascript-pack';

const packmule = new Packmule();
packmule.add(new JavaScriptPack());
return packmule.generate();

License

MIT


Package Sidebar

Install

npm i @packmule/javascript-pack

Weekly Downloads

22

Version

2.1.0

License

MIT

Unpacked Size

8.76 kB

Total Files

11

Last publish

Collaborators

  • t.esterer
  • thasmo