@tarantool.io/lua-bundler-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Lua Bundler Webpack Plugin

@tarantool.io/lua-bundler-webpack-plugin

Bundle to single Lua file with content of bundle as big Lua table with next semantic:

{
  {
    is_entry: Boolean,
    body: String(content of file),
    mime: String(mime-type of file),
    mode: String('plain' or 'base64')
  }
}

Install

npm i -s @tarantool.io/lua-bundler-webpack-plugin

Custom options

bundleName - output bundle path in your build directory.

namespace - namespace of your module. You should place your files under namespace in your build for exclude clash of namespacing with other modules.

entryRegExp - regExp for using some js files as entry. It's used by @tarantool-front/core rocks as entry files.

Example

plugins: [
....
new LuaBundlePlugin({
  bundleName: 'customBundleName.lua',
  namespace: 'cluster',
  entryRegExp: /main.+js$/
})
]

Defaults

bundleName = 'bundle.lua'
namespace = ''
entryRegExp = /main.+js$/

/@tarantool.io/lua-bundler-webpack-plugin/

    Package Sidebar

    Install

    npm i @tarantool.io/lua-bundler-webpack-plugin

    Weekly Downloads

    380

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    7.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • sergos12
    • kyukhin
    • usenko.timur
    • ashelist