DORSETRIGS
Home

rollup (20 post)


posts by category not found!

Rollup modules but keep all variables global

Rollup Modules Keeping Variables Global Rollup is a popular Java Script module bundler known for its ability to efficiently combine multiple Java Script modules

2 min read 05-10-2024 50
Rollup modules but keep all variables global
Rollup modules but keep all variables global

Vite + Vue 3 built project Content-Security-Policy Error (CSP) 'script-src "self"' because of new Function constructor in built files

Vite Vue 3 Unlocking the script src self CSP Error with the new Function Constructor The Frustrating script src self Problem When building a Vite Vue 3 applicat

2 min read 05-10-2024 42
Vite + Vue 3 built project Content-Security-Policy Error (CSP) 'script-src "self"' because of new Function constructor in built files
Vite + Vue 3 built project Content-Security-Policy Error (CSP) 'script-src "self"' because of new Function constructor in built files

`RollupError: [commonjs--resolver] Expression expected` when building the project in Vite

Understanding and Resolving the Rollup Error commonjs resolver Expression expected in Vite Projects When working with modern Java Script frameworks like Vite de

2 min read 26-09-2024 73
`RollupError: [commonjs--resolver] Expression expected` when building the project in Vite
`RollupError: [commonjs--resolver] Expression expected` when building the project in Vite

How to Reduce Build Size in React App with CRA Build?

How to Reduce Build Size in React App with CRA Build Creating a scalable and high performance React application is essential for developers However one common c

2 min read 17-09-2024 83
How to Reduce Build Size in React App with CRA Build?
How to Reduce Build Size in React App with CRA Build?

MUI X Localization Context Error When Using MUI Date Picker from Custom Library

MUI X Localization Context Error When Using MUI Date Picker from Custom Library When integrating MUI Material UI components into your React project you may enco

3 min read 16-09-2024 45
MUI X Localization Context Error When Using MUI Date Picker from Custom Library
MUI X Localization Context Error When Using MUI Date Picker from Custom Library

Vite compiled file fails with error during namespace mapping

Understanding the Vite Compilation Error Namespace Mapping Failure When working with Vite a modern frontend build tool that offers fast and lean development you

2 min read 15-09-2024 48
Vite compiled file fails with error during namespace mapping
Vite compiled file fails with error during namespace mapping

Vitest not properly interpreting TypeScript

Vitest and Type Script Bridging the Gap Vitest is a popular blazing fast testing framework for Java Script and Type Script projects But sometimes Vitest might n

2 min read 13-09-2024 48
Vitest not properly interpreting TypeScript
Vitest not properly interpreting TypeScript

How to set multiple output when build lib with vite

Building a Vue 3 Library with Multiple Output Files Using Vite Vite is a lightning fast development server and build tool thats become a popular choice for Vue

2 min read 04-09-2024 44
How to set multiple output when build lib with vite
How to set multiple output when build lib with vite

'rollup' is not recognized as an internal or external command

Troubleshooting rollup is not recognized as an internal or external command The error message rollup is not recognized as an internal or external command operab

2 min read 04-09-2024 43
'rollup' is not recognized as an internal or external command
'rollup' is not recognized as an internal or external command

How to include HTML partials using Vite?

How to Include HTML Partials with Vite for Efficient Web Development Vite a blazing fast development server for modern web development offers a streamlined work

2 min read 04-09-2024 49
How to include HTML partials using Vite?
How to include HTML partials using Vite?

Cannot unit test proyect with my custom react library

Troubleshooting Jest Errors When Using a Custom React Library This article explores a common issue developers face when integrating their custom React library i

3 min read 04-09-2024 40
Cannot unit test proyect with my custom react library
Cannot unit test proyect with my custom react library

How can rollup plugins generate its .d.ts types with .js file

Unlocking Type Script Magic How Rollup Plugins Generate d ts Files Rollup a powerful Java Script module bundler is a developers best friend But what about Type

2 min read 03-09-2024 42
How can rollup plugins generate its .d.ts types with .js file
How can rollup plugins generate its .d.ts types with .js file

Failed to load main.js script from index.html leaves a blank site until refresh

The Blank Page Problem Why Your Website Might Be Stuck Loading and How to Fix It Have you ever encountered a frustrating situation where your website loads an e

3 min read 03-09-2024 43
Failed to load main.js script from index.html leaves a blank site until refresh
Failed to load main.js script from index.html leaves a blank site until refresh

RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather

Understanding and Resolving the Rollup Error Module format umd does not support top level await This error Rollup Error Module format umd does not support top l

2 min read 01-09-2024 38
RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather
RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather

Prevent Vite/RollUp from scoping globalThis

Understanding and Preventing Vite Rollup Scoping of global This This article explores a common issue encountered when using libraries like PDF js within Vite or

2 min read 31-08-2024 68
Prevent Vite/RollUp from scoping globalThis
Prevent Vite/RollUp from scoping globalThis

How to enable chunks for development on Nuxt?

Streamlining Your Nuxt Development Enabling Chunks for Faster Performance Developing with Nuxts Hot Module Replacement HMR can sometimes feel sluggish especiall

2 min read 30-08-2024 41
How to enable chunks for development on Nuxt?
How to enable chunks for development on Nuxt?

Is there any way that I export my styles from a package I write to use in my other projects?

Exporting Styles from a React Package A Practical Guide Building a reusable React component library is a great way to streamline development and maintain consis

3 min read 29-08-2024 41
Is there any way that I export my styles from a package I write to use in my other projects?
Is there any way that I export my styles from a package I write to use in my other projects?

How come my bundle.js has the type of html instead of JS in the network tab?

Why is my bundle js showing as HTML in the Network Tab This is a common issue developers encounter when creating their own Java Script libraries or components T

3 min read 28-08-2024 54
How come my bundle.js has the type of html instead of JS in the network tab?
How come my bundle.js has the type of html instead of JS in the network tab?

Integrate Bootstrap 5 with Rollup

Integrating Bootstrap 5 with Rollup A Comprehensive Guide Integrating Bootstrap 5 into your Rollup project can be a bit tricky especially when dealing with SCSS

2 min read 28-08-2024 36
Integrate Bootstrap 5 with Rollup
Integrate Bootstrap 5 with Rollup

Install peer dependencies in lib automatically on the client side

Install Peer Dependencies in a React Library on the Client Side This article explores how to automatically install peer dependencies for your React library on t

2 min read 28-08-2024 41
Install peer dependencies in lib automatically on the client side
Install peer dependencies in lib automatically on the client side