0.0.18
Pre-release
Pre-release
Installation
Copy the following into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_js",
sha256 = "3ad6684d744ebbc6592d404cc3aa81d0da634eccb3499f6fd198ae122fa28489",
strip_prefix = "rules_js-1.19.0",
url = "https://github.com/aspect-build/rules_js/releases/download/v1.19.0/rules_js-v1.19.0.tar.gz",
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = "16.10.0",
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
npmrc = "//:.npmrc",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
# This _must_ be named `rules_prerender`, other names are currently unsupported.
http_archive(
name = "rules_prerender",
sha256 = "7c392b76f7f826ecdd9c284e545f2dc3b5f8b2b14a9e536ae81df3391cb36bf6",
strip_prefix = "rules_prerender-releases-0.0.18",
url = "https://github.com/dgp1130/rules_prerender/archive/refs/tags/releases/0.0.18.tar.gz",
)
load("@rules_prerender//:dependencies.bzl", "rules_prerender_dependencies")
rules_prerender_dependencies()
load("@rules_prerender//:repositories.bzl", "rules_prerender_repositories")
rules_prerender_repositories()
load(
"@rules_prerender//:npm_repositories.bzl",
prerender_npm_repositories = "npm_repositories",
)
prerender_npm_repositories()
Changelog
- Fixes #46 - CSS bundling is now done with Lightning CSS instead of PostCSS. For the most part, this should not be an observable change. The biggest difference is that
@import
statements must be done to relative to the importing file such as@import './foo.css';
instead of@import 'my_wksp/path/to/pkg/foo.css';
. - Fixes #63 -
@build_bazel_rules_nodejs
is now completely removed as a dependency and does not need to be included inWORKSPACE.bazel
files. This also means you can delete yourpackage-lock.json
file and rely entirely onpnpm
. - 865910e, 865910e -
README
files have been updated to clarify installation and usage with@aspect_rules_js
, with more detail for@rules_prerender/declarative_shadow_dom
in particular.