Zordex
ekaidalov
commited on
fix: compatibility issues (#409 #410 #411) (#422)
Browse filesCo-authored-by: ekaidalov <[email protected]>
- tsconfig.json +3 -3
- vite.config.ts +1 -0
tsconfig.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"compilerOptions": {
|
| 3 |
"rootDir": "./src",
|
| 4 |
-
"target": "
|
| 5 |
"useDefineForClassFields": true,
|
| 6 |
-
"module": "
|
| 7 |
-
"lib": ["
|
| 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,
|