mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-06 09:07:12 +02:00

* build: support preact * add log * Simplify the config and generate prod and dev builds for preact * update changelog * remove logs * use env variable so its available during build time * update cl * fix
12 lines
455 B
JavaScript
12 lines
455 B
JavaScript
if (process.env.IS_PREACT === "true") {
|
|
if (process.env.NODE_ENV === "production") {
|
|
module.exports = require("./dist/excalidraw-with-preact.production.min.js");
|
|
} else {
|
|
module.exports = require("./dist/excalidraw-with-preact.development.js");
|
|
}
|
|
} else if (process.env.NODE_ENV === "production") {
|
|
module.exports = require("./dist/excalidraw.production.min.js");
|
|
} else {
|
|
module.exports = require("./dist/excalidraw.development.js");
|
|
}
|