Skip to content

Commit

Permalink
Bump graphql-language-service-interface and fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin committed Apr 12, 2021
1 parent 930838d commit 50a149b
Show file tree
Hide file tree
Showing 4 changed files with 25,339 additions and 22 deletions.
6 changes: 5 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 14 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 50a149b

Please sign in to comment.