Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'BEMBED-338-performance-improvements-for-beacon' of gith…
Browse files Browse the repository at this point in the history
…ub.com:helpscout/hsds-react into BEMBED-338-performance-improvements-for-beacon
  • Loading branch information
Charca committed Mar 2, 2022
2 parents d80a74e + 539aee1 commit 329f9f4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = api => {
const isTest = api.env('test')
module.exports = () => {
const plugins = [
[
'prismjs',
Expand Down Expand Up @@ -29,12 +28,9 @@ module.exports = api => {
fileName: true,
},
],
['@babel/plugin-transform-runtime'],
]

if (isTest) {
plugins.push('@babel/plugin-transform-runtime')
}

return {
presets: [
[
Expand Down

0 comments on commit 329f9f4

Please sign in to comment.