Skip to content

Commit

Permalink
feat: wc v2 (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 authored Jun 26, 2023
1 parent 107361b commit 3e161a2
Show file tree
Hide file tree
Showing 5 changed files with 1,773 additions and 195 deletions.
Empty file modified .husky/_/husky.sh
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

17 changes: 17 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ const config = <NuxtConfig>{
parallel: isProduction,
babel: {
compact: true,
plugins: ["@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-nullish-coalescing-operator"],
},
postcss: {
plugins: {
Expand All @@ -319,6 +320,22 @@ const config = <NuxtConfig>{
},
transpile: ["oh-vue-icons", "@inkline/inkline", "iconsPlugin", "filtersPlugin", "restoreSessionPlugin"],
extend: (config: Configuration) => {
config.module!.rules.push({
test: /\.m?js$/,
include: [
/node_modules[\\/]@walletconnect/,
/node_modules[\\/]@web3modal[\\/]core/,
/node_modules[\\/]@web3modal[\\/]ui/,
],
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
plugins: ["@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-nullish-coalescing-operator"],
},
},
});

config.node = {
fs: "empty",
};
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@inkline/nuxt": "^2.3.6",
"@matterlabs/eslint-config-nuxt": "^1.0.6",
"@matterlabs/prettier-config": "^1.0.2",
"@matterlabs/zksync-nuxt-core": "^1.10.2",
"@matterlabs/zksync-nuxt-core": "1.11.0",
"@nuxt/typescript-runtime": "^2.1.0",
"@nuxtjs/google-gtag": "^1.0.4",
"@nuxtjs/sentry": "^5.1.7",
Expand All @@ -75,6 +75,8 @@
"zksync": "^0.13.1"
},
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@ethersproject/address": "^5.5.0",
Expand Down
Loading

0 comments on commit 3e161a2

Please sign in to comment.