Get wasm loading in extension
This commit is contained in:
1 parent
f59cacb2a0
commit
b5312732ba
11 files changed
+2080
-604
No files matched your search
@@ -18,12 +18,13 @@
|
||||
"Programming Languages"
|
||||
],
|
||||
"activationEvents": [
|
||||
"*",
|
||||
"onCommand:extension.htmlToDioxusRsx",
|
||||
"onCommand:extension.htmlToDioxusComponent",
|
||||
"onCommand:extension.formatRsx",
|
||||
"onCommand:extension.formatRsxDocument"
|
||||
],
|
||||
"main": "./out/main",
|
||||
"main": "./out/main.js",
|
||||
"extensionKind": [
|
||||
"ui",
|
||||
"workspace"
|
||||
@@ -76,10 +77,17 @@
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "npm run build-base -- --minify",
|
||||
"package": "vsce package -o rust-analyzer.vsix",
|
||||
"build-base": "node src/build.js",
|
||||
"build": "npm run build-base -- --sourcemap",
|
||||
"watch": "npm run build-base -- --sourcemap --watch",
|
||||
"// package": "vsce package -o rust-analyzer.vsix",
|
||||
"// build-base": "node src/build.js",
|
||||
"build-wasm": "cargo build --target wasm32-unknown-unknown --release && cp ../../target/wasm32-unknown-unknown/release/dioxus_ext.wasm pkg/",
|
||||
"bind-wasm": "wasm-bindgen --out-dir=pkg --target=web --omit-default-module-path --omit-imports pkg/dioxus_ext.wasm",
|
||||
"build-base": "npm run build-wasm && npm run bind-wasm && webpack",
|
||||
"webpack": "webpack --mode development",
|
||||
"webpack-dev": "webpack --mode development --watch",
|
||||
"package": "webpack --mode production --devtool hidden-source-map",
|
||||
"test-compile": "tsc -p ./",
|
||||
"build": "npm run build-base -- --devtool hidden-source-map",
|
||||
"watch": "npm run build-base -- --devtool hidden-source-map --watch",
|
||||
"lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
|
||||
"fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
|
||||
"pretest": "tsc && npm run build",
|
||||
@@ -91,15 +99,16 @@
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
||||
"@typescript-eslint/parser": "^5.30.5",
|
||||
"cross-env": "^7.0.3",
|
||||
"esbuild": "^0.14.27",
|
||||
"esbuild-plugin-wasm": "^1.1.0",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"ovsx": "^0.5.1",
|
||||
"prettier": "^2.6.2",
|
||||
"ts-loader": "^9.4.4",
|
||||
"tslib": "^2.3.0",
|
||||
"typescript": "^4.7.4",
|
||||
"vsce": "^2.7.0"
|
||||
"vsce": "^2.7.0",
|
||||
"webpack": "^5.88.1",
|
||||
"webpack-cli": "^5.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"dioxus-ext": "./pkg",
|
||||
|
||||
Reference in new issue
Block a user