mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Override dynamic-serialize in production build (#7844)
This commit is contained in:
committed by
GitHub
parent
ea2b2ab959
commit
b8a56aba6a
@@ -7,7 +7,7 @@ export default function removeDeprecatedFeatures (range?: string): rollup.Plugin
|
||||
return {
|
||||
name: '@cocos/build-engine | remove-deprecated-features',
|
||||
|
||||
load: function (this, id: string) {
|
||||
load (this, id: string) {
|
||||
if (!ps.isAbsolute(id)) {
|
||||
return null;
|
||||
}
|
||||
@@ -25,7 +25,7 @@ export default function removeDeprecatedFeatures (range?: string): rollup.Plugin
|
||||
console.debug(`${id} looks like a deprecated module, but it contains an invalid version.`);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
if (versionRange && !semver.satisfies(parsedVersion, versionRange)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user