![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@ms-cloudpack/esm-stub-utilities
Advanced tools
This library contains utilities for generating ESM stubs for CommonJS modules. Some bundlers require this for extracting named exports needed to produce a browser-compatible ESM bundle.
Call writeESMStubs
to generate stubs for CJS entries of a package:
import { writeESMStubs } from '@ms-cloudpack/esm-stub-utilities';
const esmStub = await writeESMStubs({
inputPath: '/path/to/package',
entries: {
'./entry1': './cjsEntry1.js',
'./entry2': './cjsEntry2.js',
},
});
When evaluating named entries in the exports
of the cjs file, the library is loaded in the node process. A few libraries are used to simulate the browser environment in order for the script to load. (E.g. some libraries will reference window
on load, and therefore must be parsed in an environment that accommodates this.)
Libraries which export a default
entry in their exports
will have that value preserved as the default
export in the stub. However libraries which have an object exported which don't have a default
key will have the entire object exported as the default.
Libraries which export a function or literal value as the exports
result will have a default export for that entry.
Some libraries don't export anything. In this case, the stub will simply import the entry.
Exported members that are keywords will be ignored. (E.g. module.exports = { 'delete': "foo" };
would be considered an empty export.)
FAQs
Generates ESM stubs for CommonJS entry files.
The npm package @ms-cloudpack/esm-stub-utilities receives a total of 0 weekly downloads. As such, @ms-cloudpack/esm-stub-utilities popularity was classified as not popular.
We found that @ms-cloudpack/esm-stub-utilities demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.