Skip to content

Commit

Permalink
feat: local plugin resolve support .ts files (#4107)
Browse files Browse the repository at this point in the history
如果是相对路径的话,应该是可以使用ts去写插件的。
  • Loading branch information
hzgotb committed Mar 9, 2020
1 parent f951277 commit 0879461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Service/utils/pluginUtils.ts
Expand Up @@ -63,7 +63,7 @@ function getPluginsOrPresets(type: PluginType, opts: IOpts): string[] {
].map(path => {
return resolve.sync(path, {
basedir: opts.cwd,
extensions: ['.js'],
extensions: ['.js', '.ts'],
});
});
}
Expand Down

0 comments on commit 0879461

Please sign in to comment.