Skip to content

Commit

Permalink
feat(assetsDir): remove deprecated component assetsDir
Browse files Browse the repository at this point in the history
Use assetDirs array instead.
  • Loading branch information
adamdbradley committed Aug 4, 2020
1 parent 6eae6f8 commit b5cba6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Expand Up @@ -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)));
}
Expand Down
5 changes: 0 additions & 5 deletions src/declarations/stencil-public-runtime.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit b5cba6a

Please sign in to comment.