@cloudfour/twing-browser-esm

5.1.1 • Public • Published

twing-browser-esm

This is the Twing library (Twig templating in Node), but bundled as ESM for browser use. Twing already comes with a browser distribution, but it doesn't work in a browser without node globals and importing from node builtin modules. In other words, that browser bundle is really meant for webpack use.

This library is a pre-bundled version of Twing that works in the browser without requiring node dependencies or globals.

The npm version of this package should match the twing version it bundles.

import {
  TwingEnvironment,
  TwingLoaderArray,
} from '@cloudfour/twing-browser-esm';

Publish Workflow

  1. Edit package.json version to match twing version if possible (try to avoid multiple releases of this package per twing release).
  2. Run npm i && npm run build
  3. Run npm publish

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i @cloudfour/twing-browser-esm

    Weekly Downloads

    1

    Version

    5.1.1

    License

    MIT

    Unpacked Size

    1.66 MB

    Total Files

    3

    Last publish

    Collaborators

    • cloudfour-user
    • gerardo-rodriguez
    • calebeby
    • spaceninja
    • cloudfour-paul
    • tylersticka