@cloudfour/twing-browser-esm
v5.1.1
Published
This is the [Twing](https://gitlab.com/nightlycommit/twing) library ([Twig](https://twig.symfony.com/) 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
Downloads
9
Keywords
Readme
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
- Edit
package.json
version
to match twing version if possible (try to avoid multiple releases of this package per twing release). - Run
npm i && npm run build
- Run
npm publish