Skip to content

Commit

Permalink
feat: support audio src in transformAssetUrls option by default (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored Dec 8, 2019
1 parent ed44d6f commit 47f1341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ interface TemplateCompileOptions {
// Transform asset urls found in the template into `require()` calls
// This is off by default. If set to true, the default value is
// {
// audio: 'src',
// video: ['src', 'poster'],
// source: 'src',
// img: 'src',
Expand Down
1 change: 1 addition & 0 deletions lib/templateCompilerModules/assetUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface AssetURLOptions {
}

const defaultOptions: AssetURLOptions = {
audio: 'src',
video: ['src', 'poster'],
source: 'src',
img: 'src',
Expand Down

0 comments on commit 47f1341

Please sign in to comment.