1,202 questions
0
votes
0
answers
30
views
Sass + PurgeCSS + SvelteKit: properly hash filenames
I have some code using SvelteKit for JS, Sass (with Bootstrap) for CSS, optimized with PurgeCSS, and compiled with Vite.
Here my vite.config.js:
import { sveltekit } from '@sveltejs/kit/vite';
import {...
0
votes
0
answers
30
views
Import Alias with Vite not Resolving
I can not seem to figurate out how to get "@/" to resolve to "src".
What am I doing wrong?
[vite] Internal server error: Failed to resolve import "@/components/Name" from ...
0
votes
0
answers
43
views
Failing to export React (the library itself) as a esm module using Rollup
I am building a frontend with no buildstep using buildless react.
I previously loaded react from a cdn similar to this:
import React from "https://esm.sh/react"
But I prefer to install ...
-1
votes
2
answers
196
views
Vitest : cannot find package 'rollup'
While trying to execute unit tests with Vitest through Yarn in my Angular app I have an error about 'rollup' package :
yarn run test
[INFO] failed to load config from xxx\angular-test\vitest.config.ts
...
1
vote
1
answer
588
views
Installing Scripts into Nuxtjs 3 + Tailwind project introducing errors
I have a Nuxtjs project using Tailwind CSS that was working locally when build with yarn dev until today when I installed Nuxt Scripts in an attempt to get YouTube embeds working per the documentation ...
0
votes
1
answer
59
views
rollup not taking care of all the dependent code | code missing in bundle
I'm trying to build a package, and for that I using rollup
const config: RollupOptions[] = [
{
input: "./index.ts",
output: [
{
dir: "...
0
votes
0
answers
16
views
RollupJs, PostCSS, SCSS Modules, Bootstrap being created in Styles.css at end of file, overriding css
I am using Rollup, PostCSS, Bootstap, Sass and React to bundle a component that relies on Bootstrap css.
I write my component files but the output of Rollup has the following:
My Rollup Config is:
...
-1
votes
1
answer
213
views
Output or log the vite rollup configuration?
When we create a vite project running npm run build will create the rollup javascript bundle.
However the command npm init vite@latest that we used to scaffold out the project does not create a rollup....
1
vote
0
answers
71
views
@rollup/plugin-typescript TS2307: Cannot find module '../xxx/HelloWorld.svelte' or its corresponding type declarations
TS FILE
import App from "../xxx/HelloWorld.svelte";
const app = new App({
target: document.body,
});
export default app;
TSCONFIG.JSON
{
"extends": "@tsconfig/svelte/...
0
votes
0
answers
25
views
Bundling Sass modules in React Component Package with Rollup
I'm working on packaging up a React component. I'm used to using CSS modules with sass (EG like Next.js).
-src
--components
---HelloWorld
----index.js
----hello-world.module.scss
HelloWorld
import ...
0
votes
0
answers
78
views
Vite and Craft — using 'public' as web root?
I am testing out Vite running as a build tool with Craft CMS (5)
Using this useful plugin and following this CraftQuest course, I got to a working setup for build and dev scripts with 'web' as the ...
1
vote
0
answers
48
views
How to enable HMR for a private React component library during development?
I’m currently developing a React component library that’s built with Rollup and released as a private npm package. This library is used across multiple applications.
The issue I’m facing is that ...
0
votes
0
answers
35
views
Recognizing custom loaders in Rollupjs
My team develops web clients in javascript. Historically, we have used Requirejs, but we are considering starting to migrate to es6 modules, and I am looking into Rollupjs to bundle the end product.
...
0
votes
1
answer
40
views
How to use puppeteer in streamdeck sdk?
I want to create a streamdeck plugin using Streamdeck SDK.
I created the example counter project and it works fine on Windows 11, node 23.8, Streamdeck 6.8.1.
The project is written in typescript and ...
0
votes
0
answers
72
views
Rollup - EntryFileNames
Does anyone know how to build out a component library with file names like this toggle.component.ts etc... it seems very difficult trying to get the compiler to work with the .component ending.
...