rollup Questions

4

Solved

I have a dataset and I want to perform something like Group By Rollup like we have in SQL for aggregate values. Below is a reproducible example. I know aggregate works really well as explained her...
Noellanoelle asked 23/3, 2016 at 3:6

3

I'm building a React app with Vite that is hosted in a subdirectory (/pwa) on my webserver. The main site is a Drupal 10 site. Previously, I was using Create React App to build my PWA. I have now c...
Selectman asked 27/3, 2023 at 15:36

3

I am using Rollup to bundle my code for production. I have multiple js files, so I am using the Rollup plugin-multi-entry plugin to use a glob pattern to target all of my js files. I am outputting ...
Gerfen asked 1/10, 2020 at 14:2

4

Solved

I would like to ask if how should I fix this issue because I am already stuck and confused about this part. I already installed rollup globally using this command npm install --global rollup Howev...

3

Solved

Is it possible to include snippets of shared HTML using Vite (vanilla)? I'm looking for a way to have the HTML prerendered without injecting via JS. Something like: <html> <head> { in...
Chirpy asked 23/1, 2022 at 1:44

7

The following is my problem. I packaged my project through vite in library mode. The error occurs whenever my library includes any third party UI library (e.g vue-loading-overlay). But other librar...
Syllabify asked 26/7, 2022 at 15:19

2

Solved

I am facing issue tried many things including changing node versions, removing node_modules and re-installing all dependencies but still not found any solution. I need help to solve this issue . I ...
Ulla asked 27/1, 2023 at 19:13

1

I want to to dynamically import several mdx files into a react component, e.g. I have a page that requires different mdx files depending on the selected language, so only one specific file is loade...
Ingurgitate asked 15/11, 2022 at 17:50

1

In my project, during dev everything works great but my target app seems to not parse imports that start with "/" properly ( I am developing for a local app, not for a website / webapp). ...
Corpus asked 1/5, 2023 at 13:11

5

My project's setup is tsdx (based on Rollup and Typescript). Working in my IDE (vscode) everything looks fine, and even running yarn tsc works without errors. When I'm running yarn build (which is ...
Heterogeneous asked 28/4, 2022 at 10:3

3

Solved

I am trying to build react-create-app into one file (including JS, CSS, PNG, etc...). It is possible and how? Should I try to use rollup or it is possible using webpack? I tested https://www.npm...
Orabelle asked 23/5, 2020 at 11:54

5

Solved

I want to have all modules imported from node_modules as external. What is the configuration for this? I tried without success : import path from "path"; import glob from "glob"; import multiEntr...
Restrained asked 30/6, 2017 at 10:16

16

Solved

I am exploring making a component library using React and rollup. I'm finding that the app that is consuming the library is bundling it in the wrong order. This is causing the below error: bundle.j...
Esque asked 27/1, 2021 at 5:10

3

Solved

I created a new Vue app using npm create vue. During runtime this app fetches a configuration and reads a string from it. This string represents the name of a component to render inside the app. Th...
Saeger asked 10/2, 2023 at 15:1

5

Solved

I am using "jsx": "react-jsx", in my tsconfig file and using Vite/rollup for bundling. For some reason my module is always bundling with both react-jsx-runtime.production.min.js...
Kampong asked 25/1, 2023 at 13:46

2

I've made a small npm package that exports a single component. The component is styled using SCSS modules, and bundled together using Rollup. It all seemed to work fine, but once I imported it into...
Fennelflower asked 25/2, 2022 at 2:2

4

Solved

I'm trying to setup a React Component library with Rollup, but every time I try to build the app with rollup -c, I get the following error: ` [!] TypeError: dts is not a function TypeError: dts is ...
Jeffrey asked 30/10, 2022 at 18:8

1

Vite has revolutionised web development for frontend js/ts apps. As it is based on rollup and supports library mode, I wonder if there is still any advantage building js libraries directly with rol...
Hernardo asked 6/9, 2022 at 10:0

1

I understand I have two general options when it comes to publishing a Typescript NPM package (library, not client): 1. Use Typescript's compiler Either run: tsc and have a tsconfig.json define the...
Eluvium asked 31/8, 2022 at 15:19

1

I'm trying to set up my vite build so that it outputs one js file, with a pre-defined name. Here is my vite.config.js: build: { lib: { entry: resolve(__dirname, "src/scripts/foo.ts"), ...
Recollect asked 2/5, 2023 at 11:43

1

Question I'm using the default Rollup executor to build an Nx library that I will later run in a browser-like environment. The resulting bundle cannot contain imports or requires. Running nx run ss...
Astyanax asked 15/2, 2022 at 17:29

1

I work on a library of React components that will be used across various Next.js projects. I want components in this library to be written in RSC way, meaning the base would be server ones and only...
Kakapo asked 14/5, 2023 at 11:11

3

I created a minimal example to show the question I have: Github repo. I have a lerna monorepo with two npm packages in the packages folder, the packages are called: utils: exports a function: e...
Synder asked 17/3, 2020 at 19:45

4

I'm trying to compile a webcomponent based on the monaco editor (in a lit element context). Having tried a lot of options I now have got the result down to two files rmx-monaco.abc123.js style.css...
Mylesmylitta asked 18/10, 2021 at 10:41

7

It seems we can use typescript to write rollup config file. Say, I can create a file named rollup.config.ts, with content: import typescript from 'rollup-plugin-typescript2'; export default { in...
Alimentation asked 15/2, 2019 at 14:29

© 2022 - 2025 — McMap. All rights reserved.