Skip to content

Commit ddd0639

Browse files
committed
v2.2.1
1 parent 548fedb commit ddd0639

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.1 (2023-06-29)
2+
3+
- 548fedb fix: avoid Vite built-in alias
4+
15
## 2.2.0 (2023-06-27)
26

37
- 64b881a feat: add `options.forceCopyIfUnbuilt`

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ export default {
3636
export interface NativeOptions {
3737
/** @default 'node_natives' */
3838
assetsDir?: string
39-
/** By default native modules are automatically detected if this option is not explicitly configure by the user. */
39+
/**
40+
* By default native modules are automatically detected if this option is not explicitly configure by the user.
41+
* @deprecated use `ignore` option instead
42+
*/
4043
natives?: string[] | ((natives: string[]) => string[])
44+
/** Ignore the specified native module. */
45+
ignore?: (name: string) => boolean | undefined
46+
/** Force copy *.node files to dist/node_modules path if Webpack can't bundle native modules correctly. */
47+
forceCopyIfUnbuilt?: true
4148
/** Enable and configure webpack. */
4249
webpack?: {
4350
config?: (config: Configuration) => Configuration | undefined | Promise<Configuration | undefined>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-native",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Supports Node/Electron C/C++ native addons",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)