diff --git a/docs/rules.md b/docs/rules.md index 7ce700e..b41315a 100755 --- a/docs/rules.md +++ b/docs/rules.md @@ -10,8 +10,8 @@ Users should not load files under "/internal" ## webpack_bundle
-webpack_bundle(name, args, deps, entry_point, entry_points, output_dir, srcs, supports_workers, - webpack, webpack_config, webpack_worker) +webpack_bundle(name, args, data, deps, entry_point, entry_points, output_dir, srcs, + supports_workers, webpack, webpack_config, webpack_worker)Runs the webpack-cli under bazel. @@ -23,6 +23,7 @@ Runs the webpack-cli under bazel. | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | | args | Command line arguments to pass to Webpack.
bazel
with --subcommands
to see what Webpack CLI command line was invoked.data
attribute are added to the runfiles of this taregt. Thery should appear in the '*.runfiles' area of any executable which has a runtime dependency on this target.JsInfo
, NpmPackageStoreInfo
providers are gathered from JsInfo
. This is done directly from npm_package_stores
and transitive_npm_package_stores
fields of these and for linked npm package targets, from the underlying npm_package_store target(s) that back the links via npm_linked_packages
and transitive_npm_linked_packages
.NpmPackageStoreInfo
providers are used downstream as direct dependencies when linking a downstream npm_package
target with npm_link_package
. | List of labels | optional | [] |
| deps | Runtime dependencies which may be loaded during compliation. | List of labels | optional | [] |
| entry_point | The point or points where to start the application bundling process.webpack_dev_server_rule(name, chdir, data, enable_runfiles, entry_point, env, expected_exit_code, - log_level, node_options, patch_node_fs, srcs, webpack_config) + include_declarations, include_npm_linked_packages, include_transitive_sources, + log_level, node_options, patch_node_fs, webpack_config)@@ -57,10 +59,12 @@ webpack_dev_server_rule(name, entry_point | Internal use only | Label | required | | | env | Environment variables of the action.
$(location)
and make variable expansion. | Dictionary: String -> String | optional | {} |
| expected_exit_code | The expected exit code.declarations
and transitive_declarations
from JsInfo
providers in data targets are included in the runfiles of the target.npm_linked_packages
and transitive_npm_linked_packages
from JsInfo
providers in data targets are included in the runfiles of the target.transitive_files
from NpmPackageStoreInfo
providers in data targets are also included in the runfiles of the target. | Boolean | optional | True |
+| include_transitive_sources | When True, transitive_sources
from JsInfo
providers in data targets are included in the runfiles of the target. | Boolean | optional | True |
| log_level | Set the logging level.fs
API (https://nodejs.org/api/fs.html) for this node program to prevent the program from following symlinks out of the execroot, runfiles and the sandbox.js_binary
patches the Node.js sync and async fs
API functions lstat
, readlink
, realpath
, readdir
and opendir
so that the node program being run cannot resolve symlinks out of the execroot and the runfiles tree. When in the sandbox, these patches prevent the program being run from resolving symlinks out of the sandbox.