Comments (5)
What's in your vite.config.ts
?
from analog.
What's in your
vite.config.ts
?
///
import analog from "@analogjs/platform";
import { defineConfig, Plugin, splitVendorChunkPlugin } from "vite";
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
import nitro from "@analogjs/vite-plugin-nitro";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
root: __dirname,
publicDir: "src/public",
resolve: {
mainFields: ["module"],
},
build: {
outDir: "../../dist/apps/frontend/client",
reportCompressedSize: true,
commonjsOptions: { transformMixedEsModules: true },
target: ["es2020"],
},
plugins: [analog(), nxViteTsPaths(), splitVendorChunkPlugin(), nitro()],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["src/test-setup.ts"],
include: ["**/*.spec.ts"],
reporters: ["default"],
cache: {
dir: ../../node_modules/.vitest
,
},
},
define: {
"import.meta.vitest": mode !== "production",
},
};
});
from analog.
The nitro
plugin doesn't need to be there, its already included with the analog
plugin
from analog.
Here is my repo, Even without nitro() im getting error:
from analog.
I cloned your repo, removed nitro
, and everything built fine for me, but I'm not on Windows. Can you try it with WSL also?
from analog.
Related Issues (20)
- Issue when building @angular/fire in Nx HOT 7
- Cannot access assets under the assets folder HOT 1
- [@analogjs/vitest-angular] latest beta has incorrect dependency version requirement on @angular-devkit/architect
- Can't test with `it/describe.each` and `fakeAsync`
- Cant stop ng serve HOT 4
- nx migrate not working HOT 2
- Add error message when `xx.page.ts` does not have a default export
- Issue with Route Guards from @angular/fire HOT 1
- Bug: Using Shiki highlighter produces too many lazy chunks by default HOT 1
- Importing `injectContent` in root causes the dev server to hang? HOT 2
- Documentation for `@analogjs/vitest-angular` is using imports from `@analogjs/vite-plugin-angular` HOT 2
- <ng-container /> not working
- `@analogjs/vite-plugin-angular/setup-vitest` pull zone.js HOT 6
- SSG File Structure Router
- Sourcemaps mismatch when adding @analogjs/vitest-angular as test-runner in Angular application
- Angular's vite plugin doesn't consume code transformation of previous vite plugin in the chain
- Create project with [email protected] and cannot run npm i HOT 1
- Inconsistent test when running in Nx
- Module import only working with relative path, path alias or project root path not working HOT 2
- Analog not working with Create Cloudflare CLI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analog.