TypeScript
Source file extensions: .ts|.tsx
Import modules
from npm
Bare imports (not starting with ./
, ../
, http:.//
or https://
) are sourced automaticaly from npm
. No npm install
required.
import { render } from 'lit-element';
Latest version of the dependency is used unless you define dependencies
in package.json
.
from URL
import { render } from 'https://unpkg.com/lit-element';
Import CSS
See CSS imports.
References
Quick example
index.ts