Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate project builds except modern ES Modules, CommonJS and Types #528

Closed
JohnAlbin opened this issue Oct 4, 2023 · 0 comments
Closed
Labels
dependencies Pull requests that update a dependency file tooling tooling changes (CI, tests, etc.); no code changes

Comments

@JohnAlbin
Copy link
Collaborator

JohnAlbin commented Oct 4, 2023

Next-Drupal currently creates the following builds with microbundle:

  • .d.ts TypeScript types — Used by the types field in package.json
  • .esm.js ES Modules (ES5) — Used by the module field in package.json
  • .js CommonJS modules — Used by the main field in package.json
  • .modern.js ES Modules (w/ Babel bugfixes mode) — Not referenced in package.json
  • .modern.mjs ES Modules (w/ Babel bugfixes mode) for Node.js — Not referenced in package.json
  • .umd.js UMD module — Not referenced in package.json

I'd recommend we only need:

We need to ensure that existing entry points work the same (for the builds we keep).

Related docs:

@JohnAlbin JohnAlbin added tooling tooling changes (CI, tests, etc.); no code changes dependencies Pull requests that update a dependency file labels Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file tooling tooling changes (CI, tests, etc.); no code changes
Projects
None yet
Development

No branches or pull requests

1 participant