diff --git a/.babelrc b/.babelrc deleted file mode 100644 index e062e6bc84..0000000000 --- a/.babelrc +++ /dev/null @@ -1,15 +0,0 @@ -{ - "presets": [ - "@babel/preset-env", - "@babel/react" - ], - "plugins": [ - [ - "formatjs", - { - "idInterpolationPattern": "[sha512:contenthash:base64:6]", - "ast": true - } - ] - ] -} diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000000..9d62b4d612 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,12 @@ +module.exports = { + presets: ['@babel/preset-env', '@babel/react'], + plugins: [ + [ + 'formatjs', + { + idInterpolationPattern: '[sha512:contenthash:base64:6]', + ast: true, + }, + ], + ], +}; diff --git a/package.json b/package.json index 7ab6a89fea..b686517aeb 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,10 @@ ], "modulePaths": [ "/src/openforms/js" + ], + "transformIgnorePatterns": [ + "/node_modules/(?!@open-formulieren/formio-builder)/", + "\\.pnp\\.[^\\\/]+$" ] }, "browserslist": [