Skip to content

fix(nuxt): reduce usage of cjs utilities#27642

Merged
danielroe merged 8 commits intomainfrom
chore/internal-cjs
Jun 15, 2024
Merged

fix(nuxt): reduce usage of cjs utilities#27642
danielroe merged 8 commits intomainfrom
chore/internal-cjs

Conversation

@danielroe
Copy link
Copy Markdown
Member

🔗 Linked issue

#11858

📚 Description

This:

  • removes last use of require.resolve outside the deprecated kit cjs utils
  • remove usage of __dirname and __filename in favour of directly using import.meta.url
  • adds a note to remove requireModule when loading postcss plugins in vite + webpack (in a subsequent PR)

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment thread packages/nuxt/src/core/plugins/import-protection.ts
Comment thread packages/nuxt/src/core/plugins/import-protection.ts Outdated
@danielroe danielroe changed the title chore: reduce usage of cjs utilities fix(nuxt): reduce usage of cjs utilities Jun 15, 2024
@danielroe danielroe merged commit 2de885b into main Jun 15, 2024
@danielroe danielroe deleted the chore/internal-cjs branch June 15, 2024 23:03
@github-actions github-actions Bot mentioned this pull request Jun 15, 2024
Kamsou pushed a commit to Kamsou/nuxt that referenced this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants