@excalidraw/extensions: Fixes for Vite.

This commit is contained in:
Daniel J. Geiger 2023-08-22 16:18:28 -05:00
parent 40ec02b280
commit dd5053149a
5 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,3 @@
import "./publicPath";
export * from "./ts/node-main";

View File

@ -1,3 +1 @@
import "./publicPath";
export * from "./ts/node-main";

View File

@ -8,7 +8,7 @@ module.exports = {
mode: "development",
devtool: false,
entry: {
"excalidraw-extensions.development": "./index.ts",
"excalidraw-extensions.development": "./entry.js",
},
output: {
path: path.resolve(__dirname, outputDir),

View File

@ -9,7 +9,7 @@ const { parseEnvVariables } = require("./env");
module.exports = {
mode: "production",
entry: {
"excalidraw-extensions.production.min": "./index.ts",
"excalidraw-extensions.production.min": "./entry.js",
},
output: {
path: path.resolve(__dirname, "dist"),

1
src/vite-env.d.ts vendored
View File

@ -46,6 +46,7 @@ interface ImportMetaEnv {
VITE_PKG_NAME: string;
VITE_PKG_VERSION: string;
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
VITE_IS_EXCALIDRAW_EXTENSIONS_NPM_PACKAGE: string;
VITE_WORKER_ID: string;
MODE: string;