Comments (3)
I just tested tsc(path.dirname(w.config.module), w.dir, 'es2015', 'es2015')
and it seems to work. The output is now:
import Element from '@skatejs/element';
import { render } from 'lit-html';
export default class extends Element {
renderer() {
return render(this.render(), this.renderRoot);
}
}
export { html as h } from 'lit-html';
More like I'd expect. It is the same output as the ESNext build, which might mean there are other settings to include, but if this is looking closer to what you'd expect to, I'm happy to supply a PR.
from skatejs.
There may be a secondary issue or getting TS to point to the file listed in the module
property of package.json, but pointing it manually gets this working.
from skatejs.
There is one issue, it seems the settings as they are now do output a reference to global.Promise
when processing @skatejs/element
, which bombs in the browser:
function delay(fn) {
if (typeof global.Promise === 'function') {
// @ts-ignore - Promise.resove() indeed does exist.
global.Promise.resolve().then(fn);
}
else {
setTimeout(fn);
}
}
This TS things is...
from skatejs.
Related Issues (20)
- First sentence in README.md is not correct HOT 2
- CLI command is actually "skatejs" not "skate" HOT 2
- SkateJS ssr example just not working HOT 1
- How to submit a v5 bug fix? HOT 1
- [bug] Every skate element gains property getters/setters of all other skate element. HOT 3
- Could we get docs on package/element in particular around ssr? HOT 2
- Add docs how to handle attribute update scenario HOT 1
- @skatejs/element-react "Invalid component name" error on WebComponent disconnectedCallback
- Using `ReactDom.render` many many times is slow HOT 2
- Homepage is broken HOT 1
- @skatejs/element should export ES6 class rather than compiled one
- Check if object is a Skate Element and Get Properties HOT 1
- SSR throws error when first childNode is a web component HOT 2
- SSR: rendered Light DOM placement HOT 2
- SSR example not working?
- Jest env not working in Jest 27 HOT 1
- Todo List example is not found
- SSR demo in readme does not work HOT 1
- element-redom
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skatejs.