Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit a94c5e0

Browse files
committed
fix(build): remove tauri-webpack as it's deprecated
1 parent 4b791a7 commit a94c5e0

File tree

3 files changed

+42
-503
lines changed

3 files changed

+42
-503
lines changed

index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,6 @@ module.exports = (api, options) => {
2626
pluginOptions.chainWebpack(cfg)
2727
}
2828
}
29-
30-
if (process.env.TAURI_BUILD) {
31-
// Setup require for no-server mode
32-
const tauriConfig = require('tauri/dist/helpers/tauri-config').default({
33-
build: {
34-
// Have to be empty strings
35-
distDir: '',
36-
devPath: ''
37-
}
38-
})
39-
if (!tauriConfig.tauri.embeddedServer.active) {
40-
const TauriRequirePlugin = require('@tauri-apps/tauri-webpack/plugins/tauri-require')
41-
.plugin
42-
cfg.plugin('tauri-require').use(TauriRequirePlugin)
43-
}
44-
}
4529
})
4630

4731
api.registerCommand(

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"pretest": "rimraf __tests__/temp_projects/*"
1212
},
1313
"dependencies": {
14-
"@tauri-apps/tauri-webpack": "^0.2.0",
1514
"@vue/cli-shared-utils": "^4.1.1",
1615
"execa": "^3.4.0",
1716
"tauri": "^0.5.1"

0 commit comments

Comments
 (0)