Skip to content

Commit

Permalink
IBX-9109: Enabling TypeScript (ts-loader) with Webpack Encore
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Oct 22, 2024
1 parent 3460a12 commit 0b5a67a
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 6 deletions.
1 change: 1 addition & 0 deletions ibexa/commerce/5.0/encore/ibexa.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = (Encore) => {
'prop-types': 'PropTypes',
})
.enableSassLoader()
.enableTypeScriptLoader()
.enableReactPreset()
.enableSingleRuntimeChunk();

Expand Down
9 changes: 7 additions & 2 deletions ibexa/commerce/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@
"@svgr/webpack": "^8.1.0"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"license": "UNLICENSED",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions ibexa/experience/5.0/encore/ibexa.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = (Encore) => {
'prop-types': 'PropTypes',
})
.enableSassLoader()
.enableTypeScriptLoader()
.enableReactPreset()
.enableSingleRuntimeChunk();

Expand Down
10 changes: 8 additions & 2 deletions ibexa/experience/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
"@ckeditor/ckeditor5-theme-lark": "^40.1.0",
"@ckeditor/ckeditor5-code-block": "^40.1.0",
"@svgr/webpack": "^8.1.0"

},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"license": "UNLICENSED",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions ibexa/headless/5.0/encore/ibexa.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = (Encore) => {
'prop-types': 'PropTypes',
})
.enableSassLoader()
.enableTypeScriptLoader()
.enableReactPreset()
.enableSingleRuntimeChunk();

Expand Down
18 changes: 17 additions & 1 deletion ibexa/headless/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,23 @@
"@ckeditor/ckeditor5-widget": "^40.1.0",
"@ckeditor/ckeditor5-theme-lark": "^40.1.0",
"@ckeditor/ckeditor5-code-block": "^40.1.0",
"@svgr/webpack": "^8.1.0"
"@svgr/webpack": "^8.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"license": "UNLICENSED",
"private": true,
Expand Down
1 change: 1 addition & 0 deletions ibexa/oss/5.0/encore/ibexa.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = (Encore) => {
'prop-types': 'PropTypes',
})
.enableSassLoader()
.enableTypeScriptLoader()
.enableReactPreset()
.enableSingleRuntimeChunk();

Expand Down
18 changes: 17 additions & 1 deletion ibexa/oss/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,23 @@
"@ckeditor/ckeditor5-widget": "^40.1.0",
"@ckeditor/ckeditor5-theme-lark": "^40.1.0",
"@ckeditor/ckeditor5-code-block": "^40.1.0",
"@svgr/webpack": "^8.1.0"
"@svgr/webpack": "^8.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"license": "UNLICENSED",
"private": true,
Expand Down

0 comments on commit 0b5a67a

Please sign in to comment.