Comments (4)
Note: anyone currently facing this problem can get around it by importing simpla.js
directly, e.g. use this snippet in your code:
import Simpla from 'simpla/simpla.js'
window.Simpla = Simpla;
this bypasses the default module
entry point your bundler might be using.
from simpla.
Simpla v3 no longer points to a borked ES build as the main
, but now there's no way to import an ES6 build for module-aware bundlers. So this is now a minor enhancement rather than a minor bug.
from simpla.
As per mentioned in #86, I think we should have ES and UMD builds for each part of Simpla, so that will be:
- Simpla
- Simpla Adapters
- Simpla Mixins (currently just for adding in element stuff)
For UMD builds that'll mean following a naming convention to add to the global namespace e.g. Simpla.X
or SimplaX
the former being better IMO as it restricts global pollution to just the 1 Simpla
from simpla.
Only problem with Simpla.X
is ensuring nothing clobbers each other, so you don't have to depend on loading order. Eg: If Simpla.[SomeExternalThing]
loads before Simpla core lib.
from simpla.
Related Issues (20)
- Add prefetch method HOT 16
- Support prerendering
- Move from Promises to Observables
- Move storage to adapter HOT 2
- Document adapter interface
- Migrate to WC v1, JS, and NPM HOT 14
- Add querying support
- Add revision history and draft support API
- Fix creating implicit files
- Remove nested hierarchies
- Add Netlify Identity adapter HOT 2
- Move elements to this org (simplaio) HOT 9
- SimplaJs with Polymer2 won't work out of the box HOT 3
- Create starter kits (Bootstrap, React, etc) HOT 4
- Adapters for the Simpla Backend HOT 1
- Question - Github as a backend - Storage limit HOT 6
- Use simpla to populate card content in a website.
- Is the project alive? HOT 2
- Authorisation to Netlify does not complete HOT 4
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 simpla.