Skip to content

Commit

Permalink
[fix] added ts-ignore to import.meta
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Jan 16, 2023
1 parent 158da0b commit dfd6220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-typed-router",
"version": "2.0.1",
"version": "2.0.2",
"description": "Provide autocompletion for pages route names generated by Nuxt router",
"type": "module",
"main": "./dist/module.cjs",
Expand Down
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineNuxtModule<ModuleOptions>({
setup(moduleOptions, nuxt: Nuxt) {
const srcDir = nuxt.options.srcDir;
const { plugin } = moduleOptions as Required<ModuleOptions>;
// @ts-ignore
const { resolve } = createResolver(import.meta.url);
nuxt.options.alias = {
...nuxt.options.alias,
Expand Down

1 comment on commit dfd6220

@vercel
Copy link

@vercel vercel bot commented on dfd6220 Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.