WebReflection / lighterhtml

The hyperHTML strength & experience without its complexity 🎉
https://medium.com/@WebReflection/lit-html-vs-hyperhtml-vs-lighterhtml-c084abfe1285
ISC License
735 stars 20 forks source link

Bundler Warning #37

Closed robhicks closed 5 years ago

robhicks commented 5 years ago

I'm using lighterhtml with an app bundled with Rollup.

Rollup emits the following warning when building:

(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en#error-this-is-undefined
node_modules/@ungap/weakmap/esm/index.js
1: /*! (c) Andrea Giammarchi - ISC */
2: var self = this || /* istanbul ignore next */ {};
              ^
3: try { self.WeakMap = WeakMap; }
4: catch (WeakMap) {
WebReflection commented 5 years ago

lighterhtml is bundled with rollup itself, all you need is: https://github.com/WebReflection/lighterhtml/blob/master/rollup.config.js#L12-L13

those are irrelevant warnings needed for polyfills, with those changes in you won't see any warning.