0.0.1 • Published 8 months ago
minimal-esnext-module v0.0.1
Motivation
Some meta frameworks doesn't transpile node_modules
by default, and it's very common to troubleshot issues caused by esnext syntax located at node_modules
. This module created some minimal functions for you to test bundler behaviors.
Quick Start
npm i minimal-esnext-module
API
async
import { asyncFunc } from 'minimal-esnext-module';
asyncFunc();
Top-level await
import { TOP_LEVEL_AWAIT } from 'minimal-esnext-module/top-level-await';
console.log(TOP_LEVEL_AWAIT);
Contribution Guide
npm run bootstrap # install dependencies
npm run clean # clean dependencies
npm run dev # development both cjs and esm output
npm run build # build both cjs and esm
npm run lint # lint code
npm run lint:fix # fix all code lint errors
npm run test # run all tests
npm run cov # run all tests and generate coverage report
npm run release # release this package
License
MIT © ULIVZ
0.0.1
8 months ago