Skip to content
Permalink
Browse files

feat(assetsDir): remove deprecated component assetsDir

Use assetDirs array instead.
  • Loading branch information
adamdbradley committed Aug 4, 2020
1 parent 6eae6f8 commit b5cba6a2c4f2cd9bc162289bab498355f61f9e10
@@ -38,10 +38,7 @@ export const componentDecoratorToStatic = (

styleToStatic(newMembers, componentOptions);

let assetsDirs = componentOptions.assetsDirs || [];
if (componentOptions.assetsDir) {
assetsDirs = [...assetsDirs, componentOptions.assetsDir];
}
const assetsDirs = componentOptions.assetsDirs || [];
if (assetsDirs.length > 0) {
newMembers.push(createStaticGetter('assetsDirs', convertValueToLiteral(assetsDirs)));
}
@@ -48,11 +48,6 @@ export interface ComponentOptions {
* Array of relative links to folders of assets required by the component.
*/
assetsDirs?: string[];

/**
* @deprecated Use `assetsDirs` instead
*/
assetsDir?: string;
}

export interface ShadowRootOptions {

0 comments on commit b5cba6a

Please sign in to comment.
You can’t perform that action at this time.