Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
fixes absolute paths in compiled commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanaszuber committed Dec 1, 2018
1 parent 417801c commit f15c9af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 7 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"devDependencies": {
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
"@babel/preset-env": "^7.1.6",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "9.0.0",
Expand Down Expand Up @@ -124,9 +126,6 @@
"build:commonjs": "cross-env NODE_ENV=production babel ./src/components --out-dir ./lib --ignore index.js",
"prepublish": "npm run build:lib"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
Expand Down Expand Up @@ -160,32 +159,18 @@
"^.+\\.module\\.(css|sass|scss)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web",
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
"./src(.*)$": "<rootDir>/src/$1"
},
"moduleFileExtensions": [
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
"node"
]
}
},
"babel": {
"plugins": [
["module-resolver", {
"root": ["./src"]
}]
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-proposal-class-properties"

],
"presets": [
"@babel/preset-env",
"react-app"
"@babel/react"
]
}
}

0 comments on commit f15c9af

Please sign in to comment.