oc-server 1.1.3 → 1.1.4

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.
Files changed (2) hide show
  1. package/dist/cli.js +1 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -147,8 +147,7 @@ async function createServer({ template, port, }) {
147
147
  app.use(express_1.default.json());
148
148
  const vite = await (0, vite_1.createServer)({
149
149
  server: { middlewareMode: true },
150
- // @ts-ignore
151
- plugins: [(0, cssModulesPlugin_1.default)(), template.plugin()],
150
+ plugins: [(0, cssModulesPlugin_1.default)(), template.plugin?.()].filter(Boolean),
152
151
  mode: 'development',
153
152
  optimizeDeps: {
154
153
  exclude: ['fsevents'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-server",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",