mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
The issue was two-fold. First of all, tsup starts using swc when `emitDecoratorMetadata` and `@swc/core` is installed. `@swc/core` is installed transiently, which still causes the problem. Okay, sure, so we move the `emitDecoratorMetadata` option to just `packages/builders/tsconfig.json` seeing as the other packages don't use decorators anyway. But that still leaves solving the issue for builders. @vladfrangu ended up finding out that there was a bug in how esbuild handles plugins causing the esbuild-plugin-version-injector plugin to not get loaded. This is solved in v1.1.0 where the content is also replaced using the `onEnd` hook, if it wasn't replaced by `onLoad` yet.
Installation
Node.js 18.13.0 or newer is required.
npm install @discordjs/next
yarn add @discordjs/next
pnpm add @discordjs/next
Links
- Website (source)
- Documentation
- Guide (source) See also the Update Guide, including updated and removed items in the library.
- discord.js Discord server
- Discord API Discord server
- GitHub
- npm
- Related libraries
Contributing
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
documentation.
See the contribution guide if you'd like to submit a PR.
Help
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.js Server.