Skip to content

Commit e09765c

Browse files
DanielJGeigerJauhen
authored andcommitted
@excalidraw/extensions: Fixes for Vite.
1 parent 41cce41 commit e09765c

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

packages/excalidraw/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ interface ImportMetaEnv {
4646
VITE_PKG_NAME: string;
4747
VITE_PKG_VERSION: string;
4848
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
49+
VITE_IS_EXCALIDRAW_EXTENSIONS_NPM_PACKAGE: string;
4950

5051
VITE_APP_PLUS_LP: string;
5152
VITE_APP_PLUS_APP: string;

packages/extensions/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import "./publicPath";
2-
31
export * from "./ts/node-main";

packages/extensions/webpack.dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
mode: "development",
99
devtool: false,
1010
entry: {
11-
"excalidraw-extensions.development": "./index.ts",
11+
"excalidraw-extensions.development": "./entry.js",
1212
},
1313
output: {
1414
path: path.resolve(__dirname, outputDir),

packages/extensions/webpack.prod.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { parseEnvVariables } = require("./env");
99
module.exports = {
1010
mode: "production",
1111
entry: {
12-
"excalidraw-extensions.production.min": "./index.ts",
12+
"excalidraw-extensions.production.min": "./entry.js",
1313
},
1414
output: {
1515
path: path.resolve(__dirname, "dist"),

src/packages/extensions/entry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import "./publicPath";
2+
3+
export * from "./ts/node-main";

0 commit comments

Comments
 (0)