mastic-node-server

1.1.0 • Public • Published

🍞 mastic-node-server 🍞

Bakes custom polyfills for each user's browser. Heavily inspired by polyfill service

Tastes beter with mastic-filler for computing the custom request.

How to use it

First, install mastic-node-server as one of your dependencies :

npm i mastic-node-server --save

and then run it !

const mastic = require('mastic-node-server');
const { promise } = require('mastic-polyfills/bundles');

const myPolyfillBundle = {
	name: 'feature-polyfill',
	bundlePath: './path/to/my-bundle.js'
}

const server = mastic({
	polyfills: [promise, myPolyfillBundle]
});

server.listen();

Package Sidebar

Install

npm i mastic-node-server

Weekly Downloads

10

Version

1.1.0

License

MIT

Last publish

Collaborators

  • thibthib