From ffeec8da8c9143d63a73f13aeba2991a70f73201 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Wed, 25 Jun 2025 22:57:10 +0200 Subject: [PATCH] Avoid conflicts with other extensions. --- extension.json | 2 +- tsconfig.json | 4 ++-- vite.config.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extension.json b/extension.json index a4ef5ac..d602f63 100644 --- a/extension.json +++ b/extension.json @@ -17,7 +17,7 @@ "ResourceModules": { "ext.wrmap": { "scripts": [ - "dist/wrmap.mjs" + "dist/wrmap.iife.js" ], "styles": [ "dist/wrmap.css" diff --git a/tsconfig.json b/tsconfig.json index a76044d..57e27d3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "es5", + "target": "es6", "lib": ["es2015", "dom"], - "module": "commonjs", + "module": "none", "moduleResolution": "node", "allowImportingTsExtensions": true, "noEmit": true, diff --git a/vite.config.js b/vite.config.js index f850d84..4460dcb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -8,7 +8,7 @@ export default defineConfig({ lib: { entry: resolve(__dirname, 'src/wrmap.ts'), name: 'wrmap', - formats: ['es'] + formats: ['iife'] } } }) -- 2.39.5