Skip to content

Commit 1597369

Browse files
fix: correctly transpile all client-side submodules (#3100)
1 parent 4181988 commit 1597369

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

config/babel.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ module.exports = (api) => {
3131
comments: false,
3232
overrides: [
3333
{
34-
test: ["../src/react/index.tsx"],
34+
test: [
35+
"../src/react/index.tsx",
36+
"../src/lib/logger.ts",
37+
"../src/core/errors.ts",
38+
"../src/client/**",
39+
],
3540
presets: [
3641
["@babel/preset-env", { targets: { ie: 11 } }],
3742
["@babel/preset-react", { runtime: "automatic" }],

src/core/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { EventCallbacks, LoggerInstance } from ".."
2-
import { Adapter } from "../adapters"
1+
import type { EventCallbacks, LoggerInstance } from ".."
2+
import type { Adapter } from "../adapters"
33

44
/**
55
* Same as the default `Error`, but it is JSON serializable.

0 commit comments

Comments
 (0)