
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
@anymud/nuxt-module-alias
Advanced tools
This package addresses an issue where Nuxt 3 modules do not support aliases due to the Jijt environment's inability to respond to tsconfig.json. By leveraging the module-alias package, @anymud/nuxt-module-alias adds the necessary aliases at the very start of your Nuxt project, ensuring smoother development experience with TypeScript support.
You can install @anymud/nuxt-module-alias using npm, pnpm, yarn, or bun. Choose the command corresponding to your package manager:
# npm
npm install @anymud/nuxt-module-alias
# pnpm
pnpm add @anymud/nuxt-module-alias
# yarn
yarn add @anymud/nuxt-module-alias
# bun
bun add @anymud/nuxt-module-alias
To use @anymud/nuxt-module-alias, add the module to the beginning of the modules array in your nuxt.config.ts file:
export default defineNuxtConfig({
modules: [
'@anymud/nuxt-module-alias',
// Other modules...
],
})
This setup ensures that alias resolution is applied before any other module logic, allowing for seamless integration with your project's existing structure.
After setting up @anymud/nuxt-module-alias, you should see output similar to the following, indicating that the aliases have been successfully added:
ℹ Setting up alias ...
✔ Adding alias ~ -> /home/kyle/anymud/src
✔ Adding alias @ -> /home/kyle/anymud/src
✔ Adding alias ~~ -> /home/kyle/anymud
✔ Adding alias @@ -> /home/kyle/anymud
✔ Adding alias assets -> /home/kyle/anymud/src/assets
✔ Adding alias public -> /home/kyle/anymud/src/public
✔ Adding alias cookie -> cookie
✔ Adding alias #app -> /home/kyle/anymud/node_modules/nuxt/dist/app
✔ Adding alias vue-demi -> /home/kyle/anymud/node_modules/nuxt/dist/app/compat/vue-demi
✔ Adding alias @vue/composition-api -> /home/kyle/anymud/node_modules/nuxt/dist/app/compat/
✔ Alias setup complete
This output verifies that the necessary aliases have been correctly added to your project, simplifying your development workflow.
Currently, @anymud/nuxt-module-alias does not require additional configuration. It works out-of-the-box by leveraging your existing tsconfig.json paths. However, future versions may introduce customizable options for enhanced flexibility.
Contributions are always welcome! If you'd like to contribute, please follow these steps:
git checkout -b feature/AmazingFeature).git commit -m 'Add some AmazingFeature').git push origin feature/AmazingFeature).Please make sure to update tests as appropriate.
Distributed under the MIT License. See LICENSE for more information.
module-alias for providing the tooling to make this package possible.For support, open an issue or submit a pull request. Please describe your problem or contribution as clearly as possible.
FAQs
Nuxt.js module to add module alias
The npm package @anymud/nuxt-module-alias receives a total of 302 weekly downloads. As such, @anymud/nuxt-module-alias popularity was classified as not popular.
We found that @anymud/nuxt-module-alias demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.