# as-module **Repository Path**: mirrors_WebReflection/as-module ## Basic Information - **Project Name**: as-module - **Description**: A module that exports primitives that will bootstrap as module. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-16 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # as-module **Social Media Photo by [Vlado Paunovic](https://unsplash.com/@vlado) on [Unsplash](https://unsplash.com/)** A module that exports primitives that will bootstrap as module. ```js import { Worker, SharedWorker } from 'as-module'; // no need for extra options // if provided, these will be forwarded new Worker('./worker.js'); // worker.js // import anything from 'anywhere'; // optional name, no need for extra options // if provided, these will be forwarded new SharedWorker('./shared.js'); // shared.js // import anything from 'anywhere'; ``` All instances will bootstrap with `{ type: 'module' }` ability so that we can stop doing the awkward dance in every modern project based on workers' modules. ## How to contribute? If there are native APIs that require a `{ type: 'module' }` somewhere while initializing, please just point me at those to be provided via this module too, thank you 🙏