@excalidraw/extensions: Fixes for Vite.
This commit is contained in:
parent
40ec02b280
commit
dd5053149a
3
src/packages/extensions/entry.js
Normal file
3
src/packages/extensions/entry.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import "./publicPath";
|
||||||
|
|
||||||
|
export * from "./ts/node-main";
|
@ -1,3 +1 @@
|
|||||||
import "./publicPath";
|
|
||||||
|
|
||||||
export * from "./ts/node-main";
|
export * from "./ts/node-main";
|
||||||
|
@ -8,7 +8,7 @@ module.exports = {
|
|||||||
mode: "development",
|
mode: "development",
|
||||||
devtool: false,
|
devtool: false,
|
||||||
entry: {
|
entry: {
|
||||||
"excalidraw-extensions.development": "./index.ts",
|
"excalidraw-extensions.development": "./entry.js",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, outputDir),
|
path: path.resolve(__dirname, outputDir),
|
||||||
|
@ -9,7 +9,7 @@ const { parseEnvVariables } = require("./env");
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
entry: {
|
entry: {
|
||||||
"excalidraw-extensions.production.min": "./index.ts",
|
"excalidraw-extensions.production.min": "./entry.js",
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "dist"),
|
path: path.resolve(__dirname, "dist"),
|
||||||
|
1
src/vite-env.d.ts
vendored
1
src/vite-env.d.ts
vendored
@ -46,6 +46,7 @@ interface ImportMetaEnv {
|
|||||||
VITE_PKG_NAME: string;
|
VITE_PKG_NAME: string;
|
||||||
VITE_PKG_VERSION: string;
|
VITE_PKG_VERSION: string;
|
||||||
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
|
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
|
||||||
|
VITE_IS_EXCALIDRAW_EXTENSIONS_NPM_PACKAGE: string;
|
||||||
|
|
||||||
VITE_WORKER_ID: string;
|
VITE_WORKER_ID: string;
|
||||||
MODE: string;
|
MODE: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user