Skip to content

Commit

Permalink
Removes source mappings from unbundled builds (#6121)
Browse files Browse the repository at this point in the history
* Removes source mappings from unbundled builds

* Fixed error

* replaced missing imports

* added brackets

---------

Co-authored-by: Martin Valigursky <59932779+mvaligursky@users.noreply.github.com>
  • Loading branch information
marklundin and mvaligursky committed Mar 8, 2024
1 parent b00d011 commit 3876ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/rollup-build-target.mjs
Expand Up @@ -125,7 +125,7 @@ function buildTarget(buildType, moduleFormat, input = 'src/index.js', buildDir =
plugins: outputPlugins[buildType || outputPlugins.release],
format: outputFormat[moduleFormat],
indent: '\t',
sourcemap: sourceMap[buildType] || sourceMap.release,
sourcemap: shouldBundle && (sourceMap[buildType] || sourceMap.release),
name: 'pc',
preserveModules: !shouldBundle
};
Expand Down

0 comments on commit 3876ceb

Please sign in to comment.