Skip to content

Commit

Permalink
chore: remove babel macro due to lack of usage (#4193)
Browse files Browse the repository at this point in the history
* chore: remove babel macro due to lack of usage

See #4064 for more information.

* chore: remove unused dependencies
  • Loading branch information
quantizor committed Oct 14, 2023
1 parent 19ccfee commit 1d869d4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 704 deletions.
8 changes: 0 additions & 8 deletions packages/styled-components/macro/package.json

This file was deleted.

33 changes: 10 additions & 23 deletions packages/styled-components/package.json
Expand Up @@ -35,16 +35,13 @@
"README.md",
"dist",
"native",
"test-utils",
"macro"
"test-utils"
],
"keywords": [
"react",
"css",
"css-in-js",
"styled-components",
"babel-macro",
"babel-macros",
"styling"
],
"author": "Glen Maddern",
Expand All @@ -58,16 +55,6 @@
"@types/react-dom": "^17.0.0"
},
"dependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.0",
"@babel/helper-module-imports": "^7.18.6",
"@babel/plugin-external-helpers": "^7.18.6",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/traverse": "^7.21.2",
"@emotion/is-prop-valid": "^1.2.1",
"@emotion/unitless": "^0.8.0",
"@types/stylis": "^4.0.2",
Expand All @@ -79,32 +66,32 @@
"tslib": "^2.5.0"
},
"peerDependencies": {
"babel-plugin-styled-components": ">= 2",
"react": ">= 16.8.0",
"react-dom": ">= 16.8.0"
},
"peerDependenciesMeta": {
"babel-plugin-styled-components": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/helper-module-imports": "^7.18.6",
"@babel/plugin-external-helpers": "^7.18.6",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-flow-strip-types": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/babel-plugin-macros": "^2.8.4",
"@types/enzyme": "^3.10.12",
"@types/jest": "^29.4.0",
"@types/js-beautify": "^1.13.1",
"@types/node": "^18.14.2",
"@types/react": "^17.0.22",
"@types/react-dom": "^17.0.9",
"@types/react-frame-component": "^4.1.3",
"@types/react-native": "^0.69.1",
"@types/react-test-renderer": "^17.0.1",
"@types/react": "^17.0.22",
"@types/shallowequal": "^1.1.1",
"babel-jest": "^29.4.3",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-styled-components": "^2.0.7",
"babel-plugin-tester": "^10.0.0",
"bundlewatch": "^0.3.3",
Expand Down
22 changes: 1 addition & 21 deletions packages/styled-components/rollup.config.mjs
Expand Up @@ -182,24 +182,4 @@ const nativeConfig = {
plugins: configBase.plugins.concat(minifierPlugin),
};

const macroConfig = Object.assign({}, configBase, {
input: './src/macro/index.ts',
output: [
getESM({ file: 'dist/styled-components-macro.esm.js' }),
getCJS({ file: 'dist/styled-components-macro.cjs.js' }),
],
plugins: configBase.plugins.concat(
replace({
__SERVER__: JSON.stringify(false),
})
),
});

export default [
standaloneConfig,
standaloneProdConfig,
serverConfig,
browserConfig,
nativeConfig,
macroConfig,
];
export default [standaloneConfig, standaloneProdConfig, serverConfig, browserConfig, nativeConfig];
49 changes: 0 additions & 49 deletions packages/styled-components/src/macro/index.ts

This file was deleted.

0 comments on commit 1d869d4

Please sign in to comment.