From c2ad049296a2a4f9ddf2066d8826330aecc68196 Mon Sep 17 00:00:00 2001 From: Thomas Nabord Date: Wed, 3 Jan 2024 15:34:50 +0000 Subject: [PATCH] Set type: module in package.json --- _dev/apps/ui/package.json | 1 + _dev/apps/ui/vite.config.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_dev/apps/ui/package.json b/_dev/apps/ui/package.json index f7cb2bcc8..e819fac12 100644 --- a/_dev/apps/ui/package.json +++ b/_dev/apps/ui/package.json @@ -2,6 +2,7 @@ "name": "marketing-with-google-ui", "version": "1.4.4", "private": true, + "type": "module", "engines": { "pnpm": ">=7.14.2", "node": ">=20", diff --git a/_dev/apps/ui/vite.config.ts b/_dev/apps/ui/vite.config.ts index 0ab007da4..aa60a2a5a 100644 --- a/_dev/apps/ui/vite.config.ts +++ b/_dev/apps/ui/vite.config.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'; import vue from "@vitejs/plugin-vue"; import path from 'path'; import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'; -import VitePluginReactRemoveAttributes from 'vite-plugin-react-remove-attributes'; +//import VitePluginReactRemoveAttributes from 'vite-plugin-react-remove-attributes'; // https://vitejs.dev/config/ export default defineConfig(({ mode }) => ({ @@ -18,9 +18,9 @@ export default defineConfig(({ mode }) => ({ } }), cssInjectedByJsPlugin(), - VitePluginReactRemoveAttributes({ + /*VitePluginReactRemoveAttributes({ attributes: ['data-test-id'], - }), + }),*/ { name: 'asset-path-fixer', enforce: 'post',