chore: add JSDocs

This commit is contained in:
Igor Randjelovic
2020-12-08 12:07:42 +01:00
parent d21776079f
commit de5f67f7c8
10 changed files with 131 additions and 0 deletions

View File

@ -8,6 +8,17 @@ interface PlatformSuffixPluginOptions {
// extensions: string[] | (() => string[])
}
/**
* The platform suffix plugin will try to resolve files with a platform specifier (suffix)
* falling back to the non-platform-specific version.
*
* For example:
* import something from './something.js'
*
* will first look for './something.<platform>.js'
* and if not found look for './something.js'
*
*/
export class PlatformSuffixPlugin {
private readonly platform: string;
// private readonly extensions: string[]