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 17, 2024
1 parent 3460a12 commit e2d12f6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 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
5 changes: 4 additions & 1 deletion ibexa/commerce/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"@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",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"dependencies": {
"react": "^18.2.0",
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
5 changes: 4 additions & 1 deletion ibexa/experience/5.0/encore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"@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",
"typescript": "^5.6.3",
"ts-loader": "^9.5.1",
"ts-config-ibexa": "https://github.com/ibexa/ts-config-ibexa"
},
"dependencies": {
"react": "^18.2.0",
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
5 changes: 4 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,10 @@
"@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",
"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 e2d12f6

Please sign in to comment.