Skip to content

Instantly share code, notes, and snippets.

@zavr-1
Created December 28, 2019 11:08
Show Gist options
  • Save zavr-1/e27978b6f6da8b498bdd1c56ce267d82 to your computer and use it in GitHub Desktop.
Save zavr-1/e27978b6f6da8b498bdd1c56ce267d82 to your computer and use it in GitHub Desktop.
// stdlib.js - to be compiled
import { c, b } from 'erte'
import Pedantry from 'pedantry'
import compare from '@depack/cache'
import whichStream from 'which-stream'
module.exports = {
'c': c,
'b': b,
'Pedantry': Pedantry,
'compare': compare,
'whichStream': whichStream,
}
// src
import whichStream from 'which-stream'
import Pedantry from 'pedantry'
import { c } from 'erte'
// build w/ ÀLaMode
const { whichStream } = require('../../stdlib');
const { Pedantry } = require('../../stdlib');
const { c } = require('../../stdlib');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment