[x] Unit or Functional tests are included in the PR
Description:
Uses the name from package.json to generate a valid JavaScript function name to be used as the output.jsonpFunction, effectively preventing different builds from accidentally loading from the wrong bundle. The config uses simple character replacement to separate words with an underscore. For example @dojo/cli-build-webpack would become dojoWebpackJsonp_cli_build_webpack.
These changes were verified locally against an application containing multiple independent bundles.
Type: bug
The following has been addressed in the PR:
Description:
Uses the
name
from package.json to generate a valid JavaScript function name to be used as theoutput.jsonpFunction
, effectively preventing different builds from accidentally loading from the wrong bundle. The config uses simple character replacement to separate words with an underscore. For example@dojo/cli-build-webpack
would becomedojoWebpackJsonp_cli_build_webpack
.These changes were verified locally against an application containing multiple independent bundles.
Resolves #158