Skip to content

Releases: pzmosquito/eslint-import-resolver-vite

2.1.0

18 Dec 00:13

Choose a tag to compare

What's Changed

  • add support for eslint-plugin-import-x resolver interface v3 by @pzmosquito in #28

Full Changelog: 2.0.1...2.1.0

2.0.1

15 Feb 19:26

Choose a tag to compare

What's Changed

  • add resolve^1.22.8 and debug^4.3.4 as dependency by @n0099 in #22

New Contributors

  • @n0099 made their first contribution in #22

2.0.0

30 Jan 23:37
e0c140b

Choose a tag to compare

What's Changed

Full Changelog: 1.3.2...2.0.0

2.0.0-beta.3

19 Jan 23:56

Choose a tag to compare

1.3.2

01 Dec 17:28

Choose a tag to compare

  • normalize path before splitting for parsing (550461b)

2.0.0-beta.1

16 Nov 17:20

Choose a tag to compare

2.0.0-beta.1 Pre-release
Pre-release

This release changed how the Vite config is loaded. In version 1.x, this plugin loads and parses the Vite config file. This could be easier to set up for default use cases, but it also introduced the issue where the plugin has to use the require() function. This works in most setups but may not work as expected in some ESM - CJS mixed setups. To avoid this issue, version 2.x moved the responsibility of loading the Vite config to the users. The plugin will now accept the Vite config object. This means that users will have the flexibility to choose how they want to load the Vite config file suitable for their setups.

// version 1.x

settings: {
    "import/resolver": "vite"
}
// OR
settings: {
    "import/resolver": {
        vite: {
            configPath: "./app/vite.config.js",
            namedExport: "viteConfigObj"
        }
    }
}

// version 2.x

settings: {
    "import/resolver": {
        vite: {
            viteConfig: require("./vite.config").viteConfigObj,
        }
    }
}

1.3.1

29 Sep 22:58

Choose a tag to compare

  • fix a publicdir resove issue (6054461)

1.3.0

20 Jul 21:57

Choose a tag to compare

  • support array type alias (#9)
  • fix a bug where the alias parsing should replace full directory name. (6fb8ff1)

1.2.1

12 Jul 03:42

Choose a tag to compare

  • fix error in a rare case when resolved publicDir path contains characters in the alias option (3a657d9)
  • update tests to be more robust (3a657d9)

1.2.0

07 Jul 22:21

Choose a tag to compare