Skip to content

Commit 84e7575

Browse files
committed
Changed export style
1 parent a628823 commit 84e7575

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

build/index.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export { Card as default } from './src/components/Card/Card';
1+
import Card from './src/components/Card/Card';
2+
export default Card;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-github-stats-card-v2",
3-
"version": "0.0.24",
3+
"version": "0.0.28",
44
"private": false,
55
"main": "build/index.js",
66
"scripts": {

webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require("path");
22

33
module.exports = {
44
mode: "production",
5-
entry: "./build/index.js",
5+
entry: "./index.js",
66
output: {
77
path: path.resolve(__dirname, "build/"),
88
filename: "index.js",
@@ -12,7 +12,8 @@ module.exports = {
1212
module: {
1313
rules: [
1414
{
15-
test: /\.js$/,
15+
test: /\.js$/,
16+
exclude: /node_modules/,
1617
use: ["babel-loader"],
1718
},
1819
{

0 commit comments

Comments
 (0)