Skip to content

Commit

Permalink
fix: Webpack bundling fail (#2)
Browse files Browse the repository at this point in the history
* chore: Bumping version

* chore: Declare module

* fix: Webpack bundling fail
  • Loading branch information
Victor Li authored Oct 21, 2020
1 parent 1f286e5 commit 80ca036
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'react-apply-darkmode';
4 changes: 2 additions & 2 deletions interpolator.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useEffect, useState} from 'react';
import {useEffect, useState} from 'react';
import PropTypes from 'prop-types';
import {enable as enableDarkMode, disable as disableDarkMode} from 'darkreader';

Expand Down Expand Up @@ -42,7 +42,7 @@ export default function Interpolator({
disableDarkMode();
}

return <>{children}</>;
return children;
}

Interpolator.propTypes = {
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": "react-apply-darkmode",
"version": "1.0.0",
"version": "1.0.1",
"description": "Apply dark mode to your React app with zero manual theming.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 80ca036

Please sign in to comment.