Questions tagged [rollupjs]

Rollup.js is a next-generation JavaScript Transpiler and module bundler

rollup.js is a module bundler, similar to browserify, but targeting code written as ES2015 modules.

Rollup takes advantage of the fact that ES2015 import and export declarations are statically analyzable and only bundles the functions / values that are actually referenced.

1172 questions
0
votes
1 answer

Rollup gives error when using Big.js

I'm currently working on a library (written in TypeScript) for Angular 4.x. The necessary JavaScript bundles are created with Rollup. It all worked fine until I added the big.js library and the corresponding typings (@types/big.js). I import it like…
Kaj Nelissen
  • 915
  • 10
  • 29
0
votes
1 answer

Angular-compiler outputs script that contain undefined this

I'm working on a small npm package for Angular, which is basically one directive that enables dragging/moving on the element you put it on. I did manage to publish it yesterday (even thought it took a while as it was the first time I published…
0
votes
1 answer

How to bundle jQuery and Foundation-Sites use Rollup.js?

I wan't to bundle jQuery and Zurb-Foundation-Sites use Rollup.js. I'm using Rollup with Gulp, this is my gulpfile.js. const gulp = require('gulp'), sass = require('gulp-sass'), concat = require('gulp-concat'), sourcemaps =…
Garfield550
  • 584
  • 1
  • 8
  • 13
0
votes
0 answers

How to use preact-compat with server side rendering in rollup + buble setup?

I have a preact app which is using rollup + buble. I need to use another component text-mask which uses React. I am trying to create alias within my rollup build file. For the client side, it works flawlessly however when building on the server…
Ranjith Nair
  • 475
  • 1
  • 6
  • 17
0
votes
1 answer

Ngx\clipboard Not working with Aot and Rollup

I have tried to implement aot in my app but While building my app with aot and rollup gets this error.I have used ngx-clipboard. 'ngx-clipboard/src/index' is imported by wwwroot\app\aot\app\app.module.ngfactory.js, but could not be resolved ΓÇô …
user3505487
  • 95
  • 2
  • 6
0
votes
1 answer

When bundled with rollupjs seeing the "require is not defined" error

Trying to bundle a library here with rollupjs and to add that to an example HTML like like this ... ...