Skip to content

An open source alternative to Tableau. Embeddable visual analytic

chore(style): avoid breaking changes by declaring empty css file

kyushoea1bdb973920
diff --git a/packages/graphic-walker/src/empty_sheet.css b/packages/graphic-walker/src/empty_sheet.css
new file mode 100644
index 00000000..21758b56
--- /dev/null
+++ b/packages/graphic-walker/src/empty_sheet.css
@@ -0,0 +1,9 @@
+/*
+ * This file is empty and importing it causes no side effect
+ * expect creating an empty <style> tag in the <head>.
+ * GraphicWalker starts using encapsuled css styles since v0.2.10
+ * so it's no more necessary to explicitly import a styled file
+ * from the production directory.
+ * This file will be temporarily kept to avoid breaking compiling
+ * while trying to import the out-dated style file.
+ */
\ No newline at end of file
diff --git a/packages/graphic-walker/src/index.tsx b/packages/graphic-walker/src/index.tsx
index 8ecebe20..b55ccdd5 100644
--- a/packages/graphic-walker/src/index.tsx
+++ b/packages/graphic-walker/src/index.tsx
@@ -6,6 +6,7 @@ import App, { EditorProps } from './App';
import { StoreWrapper } from './store/index';
import { FieldsContextWrapper } from './fields/fieldsContext';
+import './empty_sheet.css';
import tailwindStyle from "tailwindcss/tailwind.css?inline";
import style from './index.css?inline';
import { observer } from 'mobx-react-lite';