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!


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

import React, { Component } from '^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