Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ Second, replace pluggable-widgets-tools to hyper-pwt in widget's package.json.
}
```

Third, open tsconfig.json and change extends to hyper-pwt like below.

```json
{
"extends": "@repixelcorp/hyper-pwt/src/configurations/typescript/tsconfig.base",
"include": ["./src", "./typings"]
}
```

### I use custom rollup configuration.

First, proceed with the basic replacement process.
Expand All @@ -51,15 +60,15 @@ export default definePWTConfig(() => {
});
```

hyper-pwt uses the [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc) plugin. The settings for this plugin can be changed as follows.
hyper-pwt uses the [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react) plugin. The settings for this plugin can be changed as follows.

```javascript
import { definePWTConfig } from '@repixelcorp/hyper-pwt';

export default definePWTConfig(() => {
return {
reactPluginOptions: {
tsDecorators: true,
jsxRuntime: 'classic'
}
};
});
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repixelcorp/hyper-pwt",
"version": "0.3.0",
"version": "0.3.1",
"description": "A faster, more modern, superior alternative for Mendix PWT.",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,8 @@
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"./src/configurations/typescript/tsconfig.base": "./src/configurations/typescript/tsconfig.base.json"
},
"bin": {
"hyper-pwt": "dist/cli.js"
Expand All @@ -47,6 +48,7 @@
"commander": "14.0.0",
"fast-xml-parser": "5.2.5",
"mendix": "10.24.77222",
"rollup-plugin-typescript2": "0.36.0",
"vite": "npm:rolldown-vite@7.1.5",
"zip-a-folder": "3.1.9"
},
Expand All @@ -55,6 +57,7 @@
"package.json",
"LICENSE",
"src/configurations/hotReload/**/*",
"src/configurations/typescript/**/*",
"custom_widget.xsd"
],
"publishConfig": {
Expand Down
Loading
Loading