Skip to content

Commit

Permalink
Merge pull request #9 from QualiSystems/new-docusauros-version
Browse files Browse the repository at this point in the history
New docusauros version
  • Loading branch information
kalsky authored Aug 21, 2024
2 parents 767c45b + 212a2ee commit 7a90cfc
Show file tree
Hide file tree
Showing 6 changed files with 5,675 additions and 4,399 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
deploy:
name: Deploy to GitHub Pages
Expand Down
23 changes: 23 additions & 0 deletions docusaurus-prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,29 @@ const config = {
additionalLanguages: ['bash', 'powershell'],
},
}),

webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('swc-loader'),
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
transform: {
react: {
runtime: 'automatic',
},
},
target: 'es2017',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
}),
},
};

export default config;
23 changes: 23 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,29 @@ const config = {
additionalLanguages: ['bash', 'powershell'],
},
}),

webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('swc-loader'),
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
transform: {
react: {
runtime: 'automatic',
},
},
target: 'es2017',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
}),
},
};

export default config;
Loading

0 comments on commit 7a90cfc

Please sign in to comment.