Skip to content
Draft
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: 11 additions & 11 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// eslint-disable-next-line func-names
module.exports = function (api) {
api.cache(true);
api.cache(true);

const presets = [['react-app', { absoluteRuntime: false }]];
const plugins = [
['babel-plugin-styled-components'],
['import', { libraryName: 'lodash', libraryDirectory: '', camel2DashComponentName: false }]
];
const presets = [ ["react-app", { "absoluteRuntime": false }] ];
const plugins = [
["babel-plugin-styled-components"],
["import", { "libraryName": "lodash", "libraryDirectory": "", "camel2DashComponentName": false }]
];

return {
presets,
plugins
};
};
return {
presets,
plugins
};
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"url": "https://github.com/comicrelief/component-library.git"
},
"dependencies": {
"react-scripts": "4.0.3",
"babel-plugin-import": "^1.13.8",
"@babel/cli": "^7.21.5",
"@hookform/resolvers": "^3.9.0",
"axios": "^1.7.2",
"lazysizes": "^5.3.2",
Expand Down Expand Up @@ -61,8 +58,7 @@
"test:e2e:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
"lint": "eslint src",
"lint-fix": "yarn lint --fix",
"build-pr": "rm -rf dist && NODE_ENV=development BABEL_ENV=development yarn babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js",
"postinstall": "yarn build-pr"
"build-pr": "rm -rf dist && NODE_ENV=development babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js"
},
"browserslist": {
"production": [
Expand All @@ -77,8 +73,10 @@
]
},
"devDependencies": {
"@babel/cli": "^7.21.5",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@playwright/test": "^1.38.1",
"babel-plugin-import": "^1.13.8",
"cross-env": "^7.0.3",
"ejs": "^3.1.9",
"eslint": "^7.32.0",
Expand All @@ -91,6 +89,7 @@
"jest-styled-components": "^7.1.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"react-scripts": "4.0.3",
"react-styleguidist": "^11.1.7",
"react-test-renderer": "^17.0.2",
"semantic-release": "^17.4.6",
Expand Down
Loading