diff --git a/docs/1.getting-started/12.upgrade.md b/docs/1.getting-started/12.upgrade.md index 4f8620f72c..d6d463dbda 100644 --- a/docs/1.getting-started/12.upgrade.md +++ b/docs/1.getting-started/12.upgrade.md @@ -638,11 +638,11 @@ We have raised PRs to update modules using EJS syntax, but if you need to do thi * Moving your string interpolation logic directly into `getContents()`. * Using a custom function to handle the replacement, such as in https://github.com/nuxt-modules/color-mode/pull/240. -* Continuing to use `lodash`, as a dependency of _your_ project rather than Nuxt: +* Use `es-toolkit/compat` (a drop-in replacement for lodash template), as a dependency of _your_ project rather than Nuxt: ```diff + import { readFileSync } from 'node:fs' -+ import { template } from 'lodash-es' ++ import { template } from 'es-toolkit/compat' // ... addTemplate({ fileName: 'appinsights-vue.js' diff --git a/packages/schema/src/config/build.ts b/packages/schema/src/config/build.ts index 1e10a9aaff..d5e43804c9 100644 --- a/packages/schema/src/config/build.ts +++ b/packages/schema/src/config/build.ts @@ -85,20 +85,14 @@ export default defineUntypedSchema({ }, /** - * You can provide your own templates which will be rendered based - * on Nuxt configuration. This feature is specially useful for using with modules. + * It is recommended to use `addTemplate` from `@nuxt/kit` instead of this option. * - * Templates are rendered using [`lodash/template`](https://lodash.com/docs/4.17.15#template). * @example * ```js * templates: [ * { * src: '~/modules/support/plugin.js', // `src` can be absolute or relative * dst: 'support.js', // `dst` is relative to project `.nuxt` dir - * options: { - * // Options are provided to template as `options` key - * live_chat: false - * } * } * ] * ```