Zordex ekaidalov commited on
Commit
7020588
·
unverified ·
1 Parent(s): c887729

fix: compatibility issues (#409 #410 #411) (#422)

Browse files

Co-authored-by: ekaidalov <[email protected]>

Files changed (2) hide show
  1. tsconfig.json +3 -3
  2. vite.config.ts +1 -0
tsconfig.json CHANGED
@@ -1,10 +1,10 @@
1
  {
2
  "compilerOptions": {
3
  "rootDir": "./src",
4
- "target": "ESNext",
5
  "useDefineForClassFields": true,
6
- "module": "ESNext",
7
- "lib": ["ESNext", "DOM"],
8
  "moduleResolution": "Node",
9
  "strict": true,
10
  "sourceMap": true,
 
1
  {
2
  "compilerOptions": {
3
  "rootDir": "./src",
4
+ "target": "ES2019",
5
  "useDefineForClassFields": true,
6
+ "module": "CommonJS",
7
+ "lib": ["ES2019", "DOM"],
8
  "moduleResolution": "Node",
9
  "strict": true,
10
  "sourceMap": true,
vite.config.ts CHANGED
@@ -15,6 +15,7 @@ const formats = Object.keys(fileName) as Array<keyof typeof fileName>;
15
  module.exports = defineConfig({
16
  base: "./",
17
  build: {
 
18
  lib: {
19
  entry: path.resolve(__dirname, "src/driver.ts"),
20
  name: packageName,
 
15
  module.exports = defineConfig({
16
  base: "./",
17
  build: {
18
+ target: "ES2019",
19
  lib: {
20
  entry: path.resolve(__dirname, "src/driver.ts"),
21
  name: packageName,