@pii/moduleloader
v1.1.0
Published
A module loader for create aliases
Downloads
7
Readme
Pii moduleLoader
Pii moduleLoader is a hack for require
Documentation
Examples
Here is a simple example to get you started:
index.js
import useAlias from '@pii/moduleLoader'
useAlias('@src', require.resolve(./src))
require('@src/test.js')
src/test.js
console.log('file loaded')
License
This project is MIT licensed.