Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle config: Rename global to hasteFileName in bundle config #28979

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,7 @@ let getRollupInteropValue = id => {
return 'esModule';
};

function getRollupOutputOptions(
outputPath,
format,
globals,
globalName,
bundleType
) {
function getRollupOutputOptions(outputPath, format, globals, bundleType) {
const isProduction = isProductionBundleType(bundleType);

return {
Expand All @@ -214,7 +208,6 @@ function getRollupOutputOptions(
globals,
freeze: !isProduction,
interop: getRollupInteropValue,
name: globalName,
sourcemap: false,
esModule: false,
exports: 'auto',
Expand Down Expand Up @@ -351,7 +344,6 @@ function getPlugins(
filename,
packageName,
bundleType,
globalName,
moduleType,
pureExternalModules,
bundle
Expand Down Expand Up @@ -424,7 +416,6 @@ function getPlugins(
return Wrappers.wrapWithTopLevelDefinitions(
source,
bundleType,
globalName,
filename,
moduleType,
bundle.wrapWithModuleBoundaries
Expand Down Expand Up @@ -488,7 +479,6 @@ function getPlugins(
return Wrappers.wrapWithLicenseHeader(
source,
bundleType,
globalName,
filename,
moduleType
);
Expand Down Expand Up @@ -651,7 +641,6 @@ async function createBundle(bundle, bundleType) {
filename,
packageName,
bundleType,
bundle.global,
bundle.moduleType,
pureExternalModules,
bundle
Expand All @@ -674,7 +663,6 @@ async function createBundle(bundle, bundleType) {
mainOutputPath,
format,
peerGlobals,
bundle.global,
bundleType
);

Expand Down
Loading