Skip to content

A minimal esnext module used to test bundler behaviors

License

Notifications You must be signed in to change notification settings

ulivz/minimal-esnext-module

Repository files navigation

minimal-esnext-module

A minimal esnext module used to test bundler behaviors.

NPM version NPM downloads Build Status

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

About

A minimal esnext module used to test bundler behaviors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published