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

What do you do when a rollup project contains a common library like jquery and backbone?

I am using rollup to build a library that is dependent on jquery and backbone. Spent three weeks building it, but now I'm realizing that my bundled code contains the source code for jquery and backbone inside of it. So including my library on a page…
Nick Manning
  • 2,828
  • 1
  • 29
  • 50
0
votes
2 answers

Angular2 Rollupjs

I am trying to bundle my Angular2 app using RollupJS but I have been running into a few issues: The css file referenced by my AppComponent couldn't be found and throws an error. Error transforming /demo-app.ts with 'angular' plugin: ENOENT: no…
BradBeighton
  • 83
  • 1
  • 9
0
votes
1 answer

RollupJs with bootstrap-sass

I’ve started to play around with rollupjs and can’t seem to get it working with bootstrap-sass. I'm getting the error when bundling - (sass plugin) File to import not found or unreadable: bootstrap. Parent style sheet: stdin Snippets of my…
Joey
  • 544
  • 1
  • 6
  • 21
0
votes
0 answers

Unexpected token at "async" call with rollup

I have async support with babel working in my project and I've copied and pasted my settings over. I rollup processing past the async declaration. Why can't rollup process async / await? How can I build my code sucessfully? Error parsing…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
0
votes
1 answer

load socket.io with Angular 2 AOT

I've created a project in angular2 with socket.io to emit / listen socket communication. Everything works fine in JIT ( or npm start) but when I try to compile the code via rollup to lunch it as AOT for production usage It don't work. Node version :…
Kapil
  • 1
  • 2
0
votes
1 answer

Rollup issue: resolve failed, mootools already loaded, must be run with ava?

I'm having an error that makes absolutely no sense. I haven't run rollup -c in about an month and running it now is causing all sorts of mayhem. 1) mootools already loaded Why on earth is mootools already loaded in the log of this error? What is…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
0
votes
1 answer

Errors with importing Select2 into Electron project

I'm using an Electron boilerplate, from here: https://github.com/szwacz/electron-boilerplate/ It's using gulp-rollup to bundle the assets, and a dev server can be run with npm start. Here are my import statements from app.js: import os from…
0
votes
1 answer

commonjs in rollup after ngc

I am trying to get my angular 2 project compiled in AoT way. However I am having the following problem. Here is the source code: /// import { Injectable, Inject } from '@angular/core'; import { Http }…
Velissel
  • 77
  • 9
0
votes
1 answer

Multiple bundling for every ngModule with rollup.js Angular 2

I checked some articles about rollup.js and looks like it is pretty interesting module loader with cool bundle possibility. But, actually, I didn't see how it can be configured to multiple angular 2 modules bundling. For example: I have 10 modules…
Velidan
  • 5,526
  • 10
  • 48
  • 86
0
votes
1 answer

Roll Up Error: Unexpected token: name

I am trying to use Rollup to bundle and treeshake my existing project. However, I'm getting the following error. Export 'Client' is not defined by 'C:\Users\George\Source\Repos\docs\client\service\search.service.js' Error transforming bundle with…
George Edwards
  • 8,979
  • 20
  • 78
  • 161
0
votes
1 answer

How to develop NPM module for Ionic

I am developing library for Ionic 2, that should be installed via NPM, but i can't do this in classic way. If you want to develop module you can use npm link command to link module to your project where you want test and develop it, but in Ionic it…
Daniel Suchý
  • 1,822
  • 2
  • 14
  • 19
0
votes
1 answer

How to use Intl.js as es2015 modules in rollup.js build

My Angular 2 app coded in typescript 2 uses the Intl.js polyfill. I have set module:"es2015" in tsconfig.json to allow for tree-shaking using Rollup.js as recommended by Angular. in my component I just do import 'intl' When I run the app in the…
BeetleJuice
  • 39,516
  • 19
  • 105
  • 165
0
votes
1 answer

Ionic2 rc0 and redux/redux-thunk - create redux store with AoT

Anyone has been able to build an app with redux and redux-thunk? In my case, it's working with ionic serve but failing with npm run build. I can't build for devices, it only works in browser. I'm getting these ngc errors [19:25:46] ngc: Error:…
Dee
  • 909
  • 3
  • 10
  • 18
0
votes
1 answer

Custom script tag in index.html is removed on each build in Ionic 2 RC.0

I'm rebuilding my Ionic 2 app to work in the RC.0 and I'm having an issue with Charts.js. I'm using the ng2-chartjs2 module which works well, but it also needs the Charts.js 2.0 library included in the index.html. I can easily add a script tag to…
Phil
  • 371
  • 1
  • 4
  • 13
0
votes
0 answers

Rollupjs tree-shaking with typescript decorator modules

When I am using typescript decorators with modules in my script, rollupjs bundles entire modules instead of imported module. main.js import { outter } from './index.js'; let a = new outter(); index.js export * from './display'; export * from…
Yahwe Raj
  • 1,947
  • 5
  • 25
  • 37