Skip to content

Instantly share code, notes, and snippets.

View mhhegazy's full-sized avatar

Mohamed H. Hegazy mhhegazy

View GitHub Profile
@mhhegazy
mhhegazy / rollup-plugin-alias.js
Created May 15, 2017 08:48
to use with react build on windows until rollup-plugin-alias windows resolve issue fixed on main repo
const platformPath = require('path');
const { posix: path } = platformPath;
const { platform } = require('os');
const fs = require('fs');
const slash = require('slash');
const VOLUME = /^([A-Z]:)/;
const IS_WINDOWS = platform() === 'win32';