Merge pull request #921 from c-bata/fix-vscode-extension-build

Fix the build of vscode extension
This commit is contained in:
c-bata
2024-08-07 22:26:51 +09:00
committed by GitHub
2 changed files with 24 additions and 0 deletions
+18
View File
@@ -109,9 +109,27 @@ jobs:
with:
node-version: '20'
- name: Build rustlib for standalone_app
working-directory: rustlib
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
wasm-pack build --target web
- name: Setup tslib
run: make tslib
- name: Build standalone_app for vscode extension
working-directory: standalone_app
run: |
npm install
npm run build:vscode
- name: Build standalone_app for GitHub pages
working-directory: standalone_app
run: |
npm install
npx vite build --out-dir ./gh-pages
- name: Build bundle.js
working-directory: optuna_dashboard
run: |
+6
View File
@@ -36,6 +36,12 @@ module.exports = {
test: /\.wasm$/,
type: "asset/inline",
},
{
test: /\.m?js/,
resolve: {
fullySpecified: false
}
}
]
},
resolve: {