diff --git a/src/packages/extensions/entry.js b/src/packages/extensions/entry.js new file mode 100644 index 000000000..cfffae3ad --- /dev/null +++ b/src/packages/extensions/entry.js @@ -0,0 +1,3 @@ +import "./publicPath"; + +export * from "./ts/node-main"; diff --git a/src/packages/extensions/index.ts b/src/packages/extensions/index.ts index cfffae3ad..ac2bd9e10 100644 --- a/src/packages/extensions/index.ts +++ b/src/packages/extensions/index.ts @@ -1,3 +1 @@ -import "./publicPath"; - export * from "./ts/node-main"; diff --git a/src/packages/extensions/webpack.dev.config.js b/src/packages/extensions/webpack.dev.config.js index 8eb9a0da1..21707081d 100644 --- a/src/packages/extensions/webpack.dev.config.js +++ b/src/packages/extensions/webpack.dev.config.js @@ -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), diff --git a/src/packages/extensions/webpack.prod.config.js b/src/packages/extensions/webpack.prod.config.js index 9f0cb4cb2..853119ebf 100644 --- a/src/packages/extensions/webpack.prod.config.js +++ b/src/packages/extensions/webpack.prod.config.js @@ -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"), diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 624f4cf41..1399a8d99 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -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;