https://github.com/ulivz/minimal-esnext-module
A minimal esnext module used to test bundler behaviors
https://github.com/ulivz/minimal-esnext-module
Last synced: 7 months ago
JSON representation
A minimal esnext module used to test bundler behaviors
- Host: GitHub
- URL: https://github.com/ulivz/minimal-esnext-module
- Owner: ulivz
- License: mit
- Created: 2023-09-10T22:21:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-11T03:11:40.000Z (about 2 years ago)
- Last Synced: 2025-02-01T23:12:49.225Z (8 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
minimal-esnext-module
A minimal esnext module used to test bundler behaviors.## 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
```bash
npm i minimal-esnext-module
```## API
### `async`
```ts
import { asyncFunc } from 'minimal-esnext-module';asyncFunc();
```### `Top-level await`
```ts
import { TOP_LEVEL_AWAIT } from 'minimal-esnext-module/top-level-await';console.log(TOP_LEVEL_AWAIT);
```## Contribution Guide
```bash
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](https://github.com/ulivz)