Browse Source

Bump graphql-language-service-interface and fix build issues

Andrew Bastin 3 years ago
parent
commit
50a149b662
4 changed files with 25317 additions and 3 deletions
  1. 5 1
      babel.config.js
  2. 14 0
      nuxt.config.js
  3. 25295 1
      package-lock.json
  4. 3 1
      package.json

+ 5 - 1
babel.config.js

@@ -5,7 +5,11 @@ function isBabelLoader(caller) {
 module.exports = function (api) {
   if (api.env("test") && !api.caller(isBabelLoader)) {
     return {
-      plugins: ["@babel/plugin-proposal-class-properties"],
+      plugins: [
+        "@babel/plugin-proposal-class-properties",
+        "@babel/plugin-proposal-nullish-coalescing-operator",
+        "@babel/plugin-proposal-optional-chaining",
+      ],
       presets: [
         [
           "@babel/preset-env",

+ 14 - 0
nuxt.config.js

@@ -354,6 +354,20 @@ export default {
           include: /node_modules/,
           type: "javascript/auto",
         })
+
+        config.module.rules.push({
+          test: /\.js$/,
+          include: /(node_modules)/,
+          exclude: /(node_modules)\/(ace\-builds)|(@firebase)/,
+          loader: "babel-loader",
+          options: {
+            plugins: [
+              "@babel/plugin-proposal-class-properties",
+              "@babel/plugin-proposal-nullish-coalescing-operator",
+              "@babel/plugin-proposal-optional-chaining",
+            ],
+          },
+        })
       }
     },
     parallel: true,

File diff suppressed because it is too large
+ 25295 - 1
package-lock.json


+ 3 - 1
package.json

@@ -31,7 +31,7 @@
     "esprima": "^4.0.1",
     "firebase": "^8.3.3",
     "graphql": "^15.5.0",
-    "graphql-language-service-interface": "^2.8.2",
+    "graphql-language-service-interface": "^2.8.3",
     "lodash": "^4.17.20",
     "mustache": "^4.2.0",
     "nuxt": "^2.15.4",
@@ -50,6 +50,8 @@
   "devDependencies": {
     "@babel/core": "^7.13.15",
     "@babel/plugin-proposal-class-properties": "^7.12.13",
+    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
+    "@babel/plugin-proposal-optional-chaining": "^7.13.12",
     "@babel/preset-env": "^7.13.15",
     "@nuxt/types": "^2.15.4",
     "@nuxt/typescript-build": "^2.1.0",

Some files were not shown because too many files changed in this diff