Skip to content

Commit

Permalink
@excalidraw/extensions: Fixes for Vite.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJGeiger authored and Jauhen committed Nov 21, 2024
1 parent 41cce41 commit e09765c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/excalidraw/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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_APP_PLUS_LP: string;
VITE_APP_PLUS_APP: string;
Expand Down
2 changes: 0 additions & 2 deletions packages/extensions/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import "./publicPath";

export * from "./ts/node-main";
2 changes: 1 addition & 1 deletion packages/extensions/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion packages/extensions/webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
3 changes: 3 additions & 0 deletions src/packages/extensions/entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import "./publicPath";

export * from "./ts/node-main";

0 comments on commit e09765c

Please sign in to comment.