Skip to content

Commit

Permalink
Add react webpack example (#369)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mivr authored Dec 3, 2023
1 parent d21b2fb commit 06c9ff0
Show file tree
Hide file tree
Showing 17 changed files with 2,799 additions and 2,564 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Note that tutorials for other languages may be found under other repositories:

* [Next.js](/frontend/next.js)
* [react](/frontend/react)
* [react-webpack](/frontend/react-webpack)
* [vue](/frontend/vue)

### [Rule writing](/rules)
Expand Down
1 change: 1 addition & 0 deletions frontend/.bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ node_modules
next.js/node_modules
packages/one/node_modules
react/node_modules
react-webpack/node_modules
vue/node_modules
vue/libraries/simple/node_modules
1 change: 1 addition & 0 deletions frontend/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ bazel_dep(name = "aspect_rules_js", version = "1.32.2")
bazel_dep(name = "aspect_rules_swc", version = "1.0.2")
bazel_dep(name = "aspect_rules_ts", version = "2.0.1")
bazel_dep(name = "aspect_rules_rollup", version = "1.0.0")
bazel_dep(name = "aspect_rules_webpack", version = "0.13.0")
bazel_dep(name = "bazel_skylib", version = "1.4.2")

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

0 comments on commit 06c9ff0

Please sign in to comment.