You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
My Angular 2 app coded in typescript 2 uses this polyfill. I have set module:"es2015" in tsconfig.json to allow for tree-shaking using Rollup.js as recommended by Angular
When I run the app in the browser, I get the error
global is not defined
I have tried using rollup-plugin-commonjs to convert the library to es2015
We intentionally don't expose the ES6 source to be used via rollup because this is a polyfill, and bundling polyfills with the rest of your app is not what we recommend.
As for the actually issue described here, this is a dupe of #218, for which we don't have a fix yet, but a workaround is possible.
My
Angular 2
app coded intypescript 2
uses this polyfill. I have setmodule:"es2015"
intsconfig.json
to allow for tree-shaking using Rollup.js as recommended by AngularWhen I run the app in the browser, I get the error
I have tried using
rollup-plugin-commonjs
to convert the library toes2015
rollup.config.js
When I run the app in the browser, I get the error:
On a line like:
I noticed here that the library is written in
es6
so it should be compatible withrollup
. Any tips on how to use this library ases6
modules?The text was updated successfully, but these errors were encountered: