🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@bentley/webpack-tools-core

Package Overview
Dependencies
Maintainers
3
Versions
503
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentley/webpack-tools-core

Set of Webpack Plugins and Loaders used for building iModel.js applications

latest
Source
npmnpm
Version
2.19.53
Version published
Weekly downloads
531
236.08%
Maintainers
3
Weekly downloads
 
Created
Source

webpack-tools-core

Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.

The webpack-tools-core contains a set of webpack loaders and plugins used to build iTwin.js backend and frontends.

The main entry point for building an iTwin.js backend is the @bentley/backend-webpack package and iTwin.js frontends should use @bentley/webpack-tools.

This package contains the following Loaders and Plugins:

Loaders

NameDescription
strip-assert-loaderRemoves all uses of @bentley/bentleyjs-core assert() method from the webpack bundle.

Plugins

NameDescription
BackendDefaultsPluginCombines a set of Webpack plugins to use as defaults when building an iTwin.js backend. (Used in @bentley/backend-webpack).
BanImportsPluginBans any import that crosses the frontend/backend boundary
CopyBentleyStaticResourcesPluginCopies static resources from '@bentley' scoped packages into the output folder. Used to copy "assets", "public" and other resource files.
CopyExternalsPluginCopies all npm packages containing an external module (and their direct dependencies) to a node_modules directory next to the webpack output.
PrettyLoggingPluginFormats the output messages to print better when running within Azure DevOps Pipelines. Flags any warnings as errors when running a CI build.
WatchBackendPluginReloads a frontend anytime its corresponding backend changes.
IModeljsLibraryExportsPluginPromotes all module exports to the global scope, under a "__IMODELJS_INTERNALS_DO_NOT_USE" variable, with an "imjsSharedLib" in the package.json.

FAQs

Package last updated on 21 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts