Skip to content

Commit 9b0c15b

Browse files
committed
chore: swap babel-plugin-lodash with updated version that doesn't use deprecated APIs (#38797)
(cherry picked from commit 3d4d6a6)
1 parent 68b0821 commit 9b0c15b

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

examples/using-remark/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.0.0",
66
"author": "Florian Kissling <[email protected]>",
77
"dependencies": {
8-
"babel-plugin-lodash": "^3.3.4",
8+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
99
"es6-object-assign": "^1.1.0",
1010
"gatsby": "next",
1111
"gatsby-core-utils": "next",
@@ -50,4 +50,4 @@
5050
"start": "npm run develop",
5151
"serve": "gatsby serve"
5252
}
53-
}
53+
}

packages/babel-preset-gatsby-package/lib/__tests__/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe(`babel-preset-gatsby-package`, () => {
3838
},
3939
},
4040
],
41-
"babel-plugin-lodash",
41+
"@sigmacomputing/babel-plugin-lodash",
4242
]
4343
`)
4444
})
@@ -63,7 +63,7 @@ describe(`babel-preset-gatsby-package`, () => {
6363
},
6464
},
6565
],
66-
"babel-plugin-lodash",
66+
"@sigmacomputing/babel-plugin-lodash",
6767
]
6868
`)
6969
})
@@ -111,7 +111,7 @@ describe(`babel-preset-gatsby-package`, () => {
111111
},
112112
},
113113
],
114-
"babel-plugin-lodash",
114+
"@sigmacomputing/babel-plugin-lodash",
115115
]
116116
`)
117117
})
@@ -136,7 +136,7 @@ describe(`babel-preset-gatsby-package`, () => {
136136
},
137137
},
138138
],
139-
"babel-plugin-lodash",
139+
"@sigmacomputing/babel-plugin-lodash",
140140
]
141141
`)
142142
})
@@ -163,7 +163,7 @@ describe(`babel-preset-gatsby-package`, () => {
163163
},
164164
},
165165
],
166-
"babel-plugin-lodash",
166+
"@sigmacomputing/babel-plugin-lodash",
167167
]
168168
`)
169169
})
@@ -188,7 +188,7 @@ describe(`babel-preset-gatsby-package`, () => {
188188
},
189189
},
190190
],
191-
"babel-plugin-lodash",
191+
"@sigmacomputing/babel-plugin-lodash",
192192
]
193193
`)
194194
})

packages/babel-preset-gatsby-package/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function preset(context, options = {}) {
8686
availableFlags: availableCompilerFlags,
8787
},
8888
],
89-
r(`babel-plugin-lodash`),
89+
r(`@sigmacomputing/babel-plugin-lodash`),
9090
Array.isArray(keepDynamicImports) && keepDynamicImports.length > 0 && [
9191
r(`./babel-transform-mark-to-keep-dynamic-import`),
9292
{

packages/babel-preset-gatsby-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@babel/preset-react": "^7.18.6",
2020
"@babel/runtime": "^7.20.13",
2121
"babel-plugin-dynamic-import-node": "^2.3.3",
22-
"babel-plugin-lodash": "^3.3.4",
22+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
2323
"core-js": "^3.31.0"
2424
},
2525
"devDependencies": {

packages/gatsby-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@rollup/plugin-replace": "^2.4.2",
6262
"@types/hosted-git-info": "^3.0.5",
6363
"@types/yargs": "^15.0.19",
64-
"babel-plugin-lodash": "^3.3.4",
64+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
6565
"babel-preset-gatsby-package": "^3.13.0",
6666
"cross-env": "^7.0.3",
6767
"ink": "^3.2.0",

packages/gatsby-cli/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
],
6060
"@babel/preset-react"
6161
],
62-
plugins: ["@babel/plugin-transform-runtime", "babel-plugin-lodash"],
62+
plugins: ["@babel/plugin-transform-runtime", "@sigmacomputing/babel-plugin-lodash"],
6363
overrides: [
6464
{
6565
"test": ["**/*.ts", "**/*.tsx"],

packages/gatsby-plugin-lodash/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@babel/runtime": "^7.20.13",
11-
"babel-plugin-lodash": "^3.3.4",
11+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
1212
"lodash-webpack-plugin": "^0.11.6"
1313
},
1414
"devDependencies": {

packages/gatsby-plugin-lodash/src/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ exports.onCreateWebpackConfig = (
3838
// Add Lodash Babel plugin
3939
exports.onCreateBabelConfig = ({ actions }) => {
4040
actions.setBabelPlugin({
41-
name: `babel-plugin-lodash`,
41+
name: require.resolve(`@sigmacomputing/babel-plugin-lodash`),
4242
})
4343
}

packages/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"babel-loader": "^8.3.0",
4848
"babel-plugin-add-module-exports": "^1.0.4",
4949
"babel-plugin-dynamic-import-node": "^2.3.3",
50-
"babel-plugin-lodash": "^3.3.4",
50+
"@sigmacomputing/babel-plugin-lodash": "^3.3.5",
5151
"babel-plugin-remove-graphql-queries": "^5.13.0",
5252
"babel-preset-gatsby": "^3.13.0",
5353
"better-opn": "^2.1.1",

packages/gatsby/src/internal-plugins/bundle-optimisations/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require(`path`)
33
exports.onCreateBabelConfig = ({ actions }) => {
44
// rewrites import { get }from 'lodash' into import get from 'lodash/get';
55
actions.setBabelPlugin({
6-
name: `babel-plugin-lodash`,
6+
name: `@sigmacomputing/babel-plugin-lodash`,
77
})
88
}
99

0 commit comments

Comments
 (0)