stealjs / steal-tools

Build easy. Load fast.
https://stealjs.com/docs/steal-tools.html
MIT License
67 stars 23 forks source link

Proposal: Make it possible to build out projects using native modules #1049

Open matthewp opened 6 years ago

matthewp commented 6 years ago

With native modules in browsers, some teams might choose to use those in development. It could look something like this:

development.html

<title>Our app</title>
<script type="module" src="./app.js"></script>

app.js

import { Component } from "//unpkg.com/can@5/core.mjs";

Component.extend({ ... })

Currently, trying to build this in steal-tools will cause errors.

To make this work we would want: