Reterics / lionel-commonjs-bundler

A CommonJS module bundler which converts small pieces of code to one big, like a libary or application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lionel CommonJS Bundler

Lionel CommonJS Bundler is a CommonJS module bundler which converts small pieces of files/codes to one big, browser compatible javascript code. It can be a web application, library or anything else. It is compatible with the new Standards, but compiles the simplest way possible yet. That means there is no much configuration options, but on the other hand, it is easy to use and lightweight.

Usage (with javascript code):

const {commonJSBundler} = require("lionel-commonjs-bundler/index");

const bundle = commonJSBundler.makeCode(contentOfFile,__dirname);

Usage (with javascript file):

const {commonJSBundler} = require("lionel-commonjs-bundler/index");

const bundle = commonJSBundler.makeFile('./yourFileName.js',__dirname);

Install

npm install lionel-commonjs-bundler

This bundler is used by Lionel App by Default. NPM GitHub

About

A CommonJS module bundler which converts small pieces of code to one big, like a libary or application.


Languages

Language:JavaScript 100.0%