Skip to content

Commit 06c9ff0

Browse files
authored
Add react webpack example (#369)
Related to aspect-build/bazel-examples#276 and aspect-build/bazel-examples#83 This PR adds a react JS Webpack example using SWC for transpilation and Webpack for bundling.
1 parent d21b2fb commit 06c9ff0

17 files changed

+2799
-2564
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Note that tutorials for other languages may be found under other repositories:
4141

4242
* [Next.js](/frontend/next.js)
4343
* [react](/frontend/react)
44+
* [react-webpack](/frontend/react-webpack)
4445
* [vue](/frontend/vue)
4546

4647
### [Rule writing](/rules)

Diff for: frontend/.bazelignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ node_modules
22
next.js/node_modules
33
packages/one/node_modules
44
react/node_modules
5+
react-webpack/node_modules
56
vue/node_modules
67
vue/libraries/simple/node_modules

Diff for: frontend/MODULE.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ bazel_dep(name = "aspect_rules_js", version = "1.32.2")
66
bazel_dep(name = "aspect_rules_swc", version = "1.0.2")
77
bazel_dep(name = "aspect_rules_ts", version = "2.0.1")
88
bazel_dep(name = "aspect_rules_rollup", version = "1.0.0")
9+
bazel_dep(name = "aspect_rules_webpack", version = "0.13.0")
910
bazel_dep(name = "bazel_skylib", version = "1.4.2")
1011

1112
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)

0 commit comments

Comments
 (0)