Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Get rollup-optimization to work #43

Open
svi3c opened this issue Oct 27, 2016 · 3 comments
Open

Get rollup-optimization to work #43

svi3c opened this issue Oct 27, 2016 · 3 comments

Comments

@svi3c
Copy link
Contributor

svi3c commented Oct 27, 2016

At the moment rollup optimization does not do any tree shaking in this template.
As mentioned in frankwallis/plugin-typescript#159, rollup optimization with plugin-typescript should work now.

@DorianGrey
Copy link
Collaborator

It seems we will have to update plugin-typescript to the most recent version (5.2.7 atm.). However, this causes a curious error as described here: frankwallis/plugin-typescript#171 .

@DorianGrey
Copy link
Collaborator

The linked issue got resolved (version bump is in master), however, using the

{
  // ...
  module: "es2015",
  target: "es5"
  // ...
}

trick results in a somewhat curious error:

err  Error: A module cannot import itself (npm:@types/[email protected]/index.d.ts!github:frankwallis/[email protected]/plugin.js)
    at /home/linne/Projects/ng2-jspm-template/node_modules/rollup/dist/rollup.js:8915:13

@DorianGrey
Copy link
Collaborator

The descriptions in frankwallis/plugin-typescript#97 might help as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants