bundle-n-require
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Bundle n Require

Use this package to bundle and require a TypeScript file and its dependencies.

Installation

npm install --save bundle-n-require

Usage

import { bundleNRequire } from 'bundle-n-require'

const result = await bundleNRequire('path/to/entry.ts')
// => { mod, dependencies, code }
  • mod is the module that was required.
  • dependencies is an array of the modules that were required by the entry module.
  • code is the bundled code.

Package Sidebar

Install

npm i bundle-n-require

Weekly Downloads

35,824

Version

1.1.1

License

MIT

Unpacked Size

7.26 kB

Total Files

6

Last publish

Collaborators

  • segunadebayo