astoiccoder / gatsby-plugin-google-gtag-cookieconsent

Out of the box solution for google gtag with cookieconsent
MIT License
0 stars 0 forks source link

fix: add babel plugin to transform private methods #1

Closed astoiccoder closed 10 months ago

astoiccoder commented 10 months ago

Fixes the following issue when using the published npm version:

Module build failed (from ./node_modules/gatsby/dist/utils/babel-loader.js):
SyntaxError: /Users/ulrich.herzkamp/projects/blog/node_modules/gatsby-plugin-google-gtag-cookieconsent/node_modules/minimatch/dist/cjs/ast.js: Class private methods are not
enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.