@motiadev/workbench 0.9.4-beta.151-852305 → 0.9.4-beta.151-154330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/middleware.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.applyMiddleware = void 0;
|
|
7
|
-
const
|
|
7
|
+
const plugin_react_1 = __importDefault(require("@vitejs/plugin-react"));
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const vite_1 = require("vite");
|
|
@@ -45,7 +45,6 @@ const reoPlugin = () => {
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
const applyMiddleware = async ({ app, port, workbenchBase, plugins }) => {
|
|
48
|
-
const isDevMode = process.env.__MOTIA_DEV_MODE__ === '1';
|
|
49
48
|
const vite = await (0, vite_1.createServer)({
|
|
50
49
|
appType: 'spa',
|
|
51
50
|
root: __dirname,
|
|
@@ -70,12 +69,12 @@ const applyMiddleware = async ({ app, port, workbenchBase, plugins }) => {
|
|
|
70
69
|
alias: {
|
|
71
70
|
'@': path_1.default.resolve(__dirname, './src'),
|
|
72
71
|
'@/assets': path_1.default.resolve(__dirname, './src/assets'),
|
|
73
|
-
'lucide-react/dynamic':
|
|
74
|
-
'lucide-react':
|
|
72
|
+
'lucide-react/dynamic': 'lucide-react/dynamic.mjs',
|
|
73
|
+
'lucide-react': 'lucide-react/dist/cjs/lucide-react.js',
|
|
75
74
|
},
|
|
76
75
|
},
|
|
77
76
|
plugins: [
|
|
78
|
-
(0,
|
|
77
|
+
(0, plugin_react_1.default)(),
|
|
79
78
|
processCwdPlugin(),
|
|
80
79
|
reoPlugin(),
|
|
81
80
|
(0, motia_plugin_1.default)(plugins),
|