Skip to content

Commit

Permalink
Merge pull request #11962 from ckeditor/ck/11718-typescript-in-dll
Browse files Browse the repository at this point in the history
Other: Adds support for TypeScript when building core DLL. Closes #11718.
  • Loading branch information
arkflpc authored Jul 12, 2022
2 parents 81eb542 + 198daf8 commit 07282ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@ckeditor/ckeditor5-dev-docs": "^30.0.0",
"@ckeditor/ckeditor5-dev-env": "^30.0.0",
"@ckeditor/ckeditor5-dev-tests": "^30.2.0",
"@ckeditor/ckeditor5-dev-utils": "^30.0.0",
"@ckeditor/ckeditor5-dev-utils": "^30.3.1",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^30.0.0",
"@ckeditor/ckeditor5-export-pdf": ">=1.0.0",
"@ckeditor/ckeditor5-export-word": ">=1.0.0",
Expand Down Expand Up @@ -124,6 +124,7 @@
"stylelint-config-ckeditor5": "^4.0.0",
"svgo": "^2.2.2",
"terser-webpack-plugin": "^4.2.3",
"ts-loader": "^9.3.0",
"umberto": "^2.1.3",
"upath": "^2.0.0",
"wait-on": "^5.2.1",
Expand Down
7 changes: 7 additions & 0 deletions scripts/dll/webpack.config.dll.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ const webpackConfig = {
footer: `( ( fn, root ) => fn( root ) )( ${ loadCKEditor5modules.toString() }, window );`
} )
],
resolve: {
extensions: [ '.ts', '.js', '.json' ]
},
module: {
rules: [
{
Expand Down Expand Up @@ -136,6 +139,10 @@ const webpackConfig = {
}
}
]
},
{
test: /\.ts$/,
use: [ 'ts-loader' ]
}
]
}
Expand Down

0 comments on commit 07282ae

Please sign in to comment.