Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions build/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,22 @@ const ignore = [
];

gulp.task('build-ts', () => {
return gulp.src([
'../src/**/*.ts',
'../src/**/*.tsx',
...ignore
]).pipe(ts({
...tsConfig.compilerOptions,
target: 'es5',
module: 'commonjs'
})).pipe(gulp.dest('../lib'));
return gulp
.src([
'../src/**/*.ts',
...ignore
])
.pipe(ts({
...tsConfig.compilerOptions,
target: 'es5',
module: 'commonjs'
}))
.pipe(gulp.dest('../lib'));
});

gulp.task('build-modules', () => {
return gulp.src([
'../src/**/*.ts',
'../src/**/*.{ts,tsx}',
...ignore
]).pipe(ts({
...tsConfig.compilerOptions,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libreact",
"version": "1.5.0",
"version": "1.6.1",
"description": "React standard library",
"main": "lib/index.js",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!(window as any).IntersectionObserver) {
}

export const ViewportSensor: React.StatelessComponent<IViewportObserverSensorProps> = (props) => {
return <Sensor {...props} />
return h(Sensor, props);
};

const wrapper = (Comp, propName, props, state) =>
Expand Down