A minimal esnext module used to test bundler behaviors.
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.
npm i minimal-esnext-module
import { asyncFunc } from 'minimal-esnext-module';
asyncFunc();
import { TOP_LEVEL_AWAIT } from 'minimal-esnext-module/top-level-await';
console.log(TOP_LEVEL_AWAIT);
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
MIT © ULIVZ