diff --git a/src/compiler/transformers/decorators-to-static/component-decorator.ts b/src/compiler/transformers/decorators-to-static/component-decorator.ts index dfbf516bc1b..15e9443955b 100644 --- a/src/compiler/transformers/decorators-to-static/component-decorator.ts +++ b/src/compiler/transformers/decorators-to-static/component-decorator.ts @@ -1,5 +1,5 @@ import type * as d from '../../../declarations'; -import { augmentDiagnosticWithNode, buildError, validateComponentTag, isString, buildWarn } from '@utils'; +import { augmentDiagnosticWithNode, buildError, validateComponentTag } from '@utils'; import { getDeclarationParameters } from './decorator-utils'; import { convertValueToLiteral, createStaticGetter } from '../transform-utils'; import { styleToStatic } from './style-to-static'; @@ -40,13 +40,6 @@ export const componentDecoratorToStatic = ( const assetsDirs = componentOptions.assetsDirs || []; - if (isString((componentOptions as any).assetsDir)) { - assetsDirs.push((componentOptions as any).assetsDir); - const warn = buildWarn(diagnostics); - warn.messageText = `@Component option "assetsDir" should be renamed to "assetsDirs" and the value should be an array of strings.`; - augmentDiagnosticWithNode(warn, componentDecorator); - } - if (assetsDirs.length > 0) { newMembers.push(createStaticGetter('assetsDirs', convertValueToLiteral(assetsDirs))); }