Beyond the script tag: what the heck's a Bundler and why would you use one?

I just wrote this article with examples

Feedback welcome!

4 Likes

Cool! But for imports, you can just use pika.dev like this: (Yeah, ik that’s preact, react doesn’t support ESM)

import React, { Component } from 'https://cdn.pika.dev/preact@^10.3.0';
class Button extends Component {
  render() {
    // ...
  }
}
export default Button; // Don’t forget to use export default!

Good catch! I have a new article about Pika+Snowpack coming out soon.

1 Like