Skip to content

Commit

Permalink
AGDNS-2309 fix build (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarKamalov authored Aug 26, 2024
1 parent 3052d6d commit 7e266df
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 422 deletions.
26 changes: 17 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,21 @@ module.exports = {
},
],
],
plugins: [
'@docusaurus/plugin-ideal-image',
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['en'],
}
],
],
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('swc-loader'),
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2017',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
}),
},
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"dependencies": {
"@crowdin/cli": "3.13.0",
"@docusaurus/core": "^2.2.0",
"@docusaurus/plugin-ideal-image": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"@swc/core": "^1.7.18",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^2.1.15",
"docusaurus-theme-search-typesense": "^0.8.0",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"swc-loader": "^0.2.6",
"url-loader": "^4.1.1"
},
"browserslist": {
Expand Down
Loading

0 comments on commit 7e266df

Please sign in to comment.