Comments (4)
This wouldn't be a problem if we were able to use ES module versions of the packages (rather than bundled cjs)
Why can't you use ES modules?
from time.
If I yarn add @cycle/time
, it installs the package compiled down to cjs.
eg. rxjs.js looks like
"use strict";
exports.__esModule = true;
var Observable_1 = require("rxjs/Observable");
require("rxjs/add/observable/from");
var adapt_1 = require("@cycle/run/lib/adapt");
var mock_time_source_1 = require("./dist/mock-time-source");
var time_driver_1 = require("./dist/time-driver");
adapt_1.setAdapt(function (stream) { return Observable_1.Observable.from(stream); });
function mockTimeSource(args) {
return mock_time_source_1.mockTimeSource(args);
}
exports.mockTimeSource = mockTimeSource;
function timeDriver(_, adapter) {
return time_driver_1.timeDriver(_, adapter);
}
exports.timeDriver = timeDriver;
Am I missing some yarn or npm command to pull in an ES module version?
(From my experience adding the package from github and trying to use the ts files directly (e.g. using tsloader and webpack) has never seemed to work well - maybe I should pull it in from github then try to compile it from typescript to an es module version before bundling?)
from time.
Ugh, good catch. Can you please open this over on the cyclejs repo, this repo is soon to be closed down? We definitely need to do something about this, and maybe set up a package size benchmark to prevent further unintentional bloat.
from time.
Can do! @Widdershin cyclejs/cyclejs#660
from time.
Related Issues (20)
- README feedback HOT 6
- Export marble diagram images from tests HOT 6
- Expectation of delayed value with start-with value fails HOT 3
- Port xstream#tween to @cycle/time HOT 4
- Support Jasmine's done.fail() HOT 3
- Document behaviour of "simultaneous" value syntax HOT 11
- Export TimeSource type
- Support snapshot style testing with html-looks-like HOT 9
- Support alternative testing frameworks such as Ava HOT 18
- Make Time.run() return a promise HOT 2
- Add throttleIdleCallback HOT 7
- Write a specification for the marble diagram DSL HOT 3
- Add support for loading extra operators HOT 13
- Allow events to run even when focus is lost HOT 9
- throttleAnimationFrame() HOT 5
- Delete code and add moved readme HOT 1
- Move issues and pull request to monorepo HOT 2
- Can you explain why the operators are useful... HOT 1
- Add support for most.js and rxjs HOT 5
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 time.