File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 `
Original file line number Diff line number Diff line change @@ -36,8 +36,15 @@ export default {
3636export 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 >
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments