python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Get Rollup static path for json5 file like react-create-app does it
I have created an app using react-create-app. When I import a .json5 file, it treats it as a static file, copies it to build/dist folder, and returns its relative path:
import foo from './some-file.js...

Michał Wojas
Votes: 0
Answers: 1
TSC/Rollup: how to pipe TSC output into Rollup without TSC emitting files?
I'm using rollup with TSC to generate es modules based bundle. When I run npm run build tsc transpiles .ts to .js files inside src. After that, Rollup takes the .js files and does some magic like turn...
stackcen
Votes: 0
Answers: 1
Replacing variable with @rollup/plugin-replace throws error
Problem
I am trying to inject / replace environment variables with @rollup/plugin-replace. Unfortunately, I get this error:
TypeError: can't convert undefined to object
Code
// rollup.config.js
impo...

Gh05d
Votes: 0
Answers: 1
NextJS & Rollup & yalc - Element type is invalid: expected a string (for built-in components) but got: undefined
I keep getting the following invalid error while trying to create a component library for React.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for co...
codebytesfl
Votes: 0
Answers: 2