Skip to content

Commit

Permalink
feat: upgrade default swc version to v1.7.40
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Nov 5, 2024
1 parent 196c4ba commit ef6719b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 57 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
docs/*.md
examples/pnpm-lock.yaml
**/expected.js
**/expected.cjs
**/expected_tsc
**/expected_tsc
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bazel_dep(name = "platforms", version = "0.0.7")
swc = use_extension("@aspect_rules_swc//swc:extensions.bzl", "swc")
swc.toolchain(
name = "swc",
swc_version = "v1.6.6",
swc_version = "v1.7.40",
)
use_repo(swc, "swc_toolchains")

Expand Down
1 change: 0 additions & 1 deletion examples/plugins/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ swc_plugin(
name = "npm_plugin",
srcs = [
# reference the location where the "@swc/plugin-transform-imports" npm package was linked in our root Bazel package.
":node_modules/@swc/plugin-transform-imports",
":node_modules/@swc/plugin-transform-imports/dir",
],
# optional plugin config, the JSON object for the plugin passed into jsc.experimental.plugins
Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"devDependencies": {
"@swc/plugin-transform-imports": "1.5.70"
"@swc/plugin-transform-imports": "^3.0.0"
}
}
79 changes: 28 additions & 51 deletions examples/pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions swc/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ load("//swc/private:versions.bzl", "TOOL_VERSIONS")
# NB: we don't use the "most recent release" since swc has a history of often breaking Bazel usage
# with subtle changes that get through their tests.
# So instead, this reflects the latest version that is "known good" according to our test suite.
LATEST_SWC_VERSION = "v1.6.6"
LATEST_SWC_VERSION = "v1.7.40"

# TODO(2.0): remove this alias
LATEST_VERSION = LATEST_SWC_VERSION
LATEST_VERSION = "v1.6.6"

_DOC = "Fetch external dependencies needed to run the SWC cli"
_ATTRS = {
Expand Down

0 comments on commit ef6719b

Please sign in to comment.