From 06954ebb15e445c1335f15e5393d7c1786db297c Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Tue, 26 Sep 2023 13:11:24 +0200 Subject: [PATCH 1/2] Fix gia imports --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 7ccef04..30f2c6b 100755 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,7 @@ import Plugin from '@swup/plugin'; -import loadComponents from 'gia/loadComponents.js'; -import removeComponents from 'gia/removeComponents.js'; -import config from 'gia/config.js'; +import loadComponents from 'gia/dist/loadComponents.js'; +import removeComponents from 'gia/dist/removeComponents.js'; +import config from 'gia/dist/config.js'; export default class SwupGiaPlugin extends Plugin { name = 'SwupGiaPlugin'; From c958b82148fb0a7d6c833d6374390bcf795dc3e4 Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Tue, 26 Sep 2023 13:11:57 +0200 Subject: [PATCH 2/2] Remove `tsconfig.json` --- tsconfig.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index ce166f9..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "include": ["src"], - "compilerOptions": { - "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - "moduleResolution": "Node16", /* Specify how TypeScript looks up a file from a given module specifier. */ - "rootDirs": ["./src"], /* Allow multiple folders to be treated as one when resolving modules. */ - "resolveJsonModule": true, /* Enable importing .json files. */ - "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ - "outDir": "./dist", /* Specify an output folder for all emitted files. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - } -}