Skip to content

Commit

Permalink
fix: build to run js test
Browse files Browse the repository at this point in the history
  • Loading branch information
mudassir-hafeez committed Aug 8, 2024
1 parent dc8f6a1 commit 1bef9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/babelhook.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { babelSharedLoader } = require("../../webpack.config.shared");

babelSharedLoader.query.presets = ["@babel/env", "@babel/preset-react"];
babelSharedLoader.options.presets = ["@babel/env", "@babel/preset-react"];

require("@babel/polyfill");

Expand Down Expand Up @@ -47,4 +47,4 @@ Object.defineProperty(window, "location", {
},
});

require("@babel/register")(babelSharedLoader.query);
require("@babel/register")(babelSharedLoader.options);

0 comments on commit 1bef9fa

Please sign in to comment.