Skip to content

Commit

Permalink
fix(demo): Fixes webpack serve/demo to 5.x compatible
Browse files Browse the repository at this point in the history
Changes to webpack-dev-server which is compatible with webpack 5.x, adds missing typescript
definition for property
  • Loading branch information
ellinge committed Mar 13, 2024
1 parent 3bbe0d7 commit 9599874
Show file tree
Hide file tree
Showing 4 changed files with 1,241 additions and 455 deletions.
7 changes: 7 additions & 0 deletions docs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ const baseConfig = {
extensions: ['.js', '.css'],
modules: ['node_modules'],
},
devServer: {
static: {
directory: __dirname,
},
open: true,
port: 3000,
},
module: {
rules: [
{
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build:docs": "yarn build && cross-env NODE_ENV=production webpack --config docs/webpack.config.js --bail --mode=production",
"commit": "git-cz",
"coveralls": "yarn test && c8 report --reporter=text-lcov | coveralls",
"demo": "rimraf ./docs/bundle.js && webpack-serve --content ./docs --port 3000 --open --config docs/webpack.config.js",
"demo": "rimraf ./docs/bundle.js && webpack serve --config docs/webpack.config.js",
"prepublishOnly": "yarn build",
"lint": "eslint --fix src docs webpack.config.js && stylelint --fix \"src/**/*.css\"",
"lint:nofix": "eslint src webpack.config.js && stylelint \"src/**/*.css\"",
Expand Down Expand Up @@ -109,11 +109,11 @@
"style-loader": "^0.20.1",
"stylelint": "^9.0.0",
"stylelint-config-standard": "^18.0.0",
"url-loader": "^1.0.1",
"url-loader": "^4.1.1",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.7.0",
"webpack-cli": "^5.0.1",
"webpack-serve": "^4.0.0",
"webpack-dev-server": "^5.0.3",
"why-did-you-update": "^0.1.1"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions types/react-dropdown-tree-select.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ declare module 'react-dropdown-tree-select' {
* search bar, the tree will not deselect nodes.
*/
disablePoppingOnBackspace?: boolean
/** `tabIndex=0` attribute indicates that its element can be focused, and where it participates in sequential keyboard navigation.
*/
tabIndex?: number
}

export interface DropdownTreeSelectState {
Expand Down
Loading

0 comments on commit 9599874

Please sign in to comment.