Commit a5bf0747 authored by Dan Harper's avatar Dan Harper Committed by Dan Abramov
Browse files

add audio support (#665)

parent 16a97249
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
...@@ -47,7 +47,7 @@ module.exports = { ...@@ -47,7 +47,7 @@ module.exports = {
settings: { settings: {
'import/ignore': [ 'import/ignore': [
'node_modules', 'node_modules',
'\\.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$', '\\.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$',
], ],
'import/extensions': ['.js'], 'import/extensions': ['.js'],
'import/resolver': { 'import/resolver': {
......
...@@ -147,7 +147,7 @@ module.exports = { ...@@ -147,7 +147,7 @@ module.exports = {
// "url" loader works just like "file" loader but it also embeds // "url" loader works just like "file" loader but it also embeds
// assets smaller than specified size as data URLs to avoid requests. // assets smaller than specified size as data URLs to avoid requests.
{ {
test: /\.(mp4|webm)(\?.*)?$/, test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
loader: 'url', loader: 'url',
query: { query: {
limit: 10000, limit: 10000,
......
...@@ -157,7 +157,7 @@ module.exports = { ...@@ -157,7 +157,7 @@ module.exports = {
// "url" loader works just like "file" loader but it also embeds // "url" loader works just like "file" loader but it also embeds
// assets smaller than specified size as data URLs to avoid requests. // assets smaller than specified size as data URLs to avoid requests.
{ {
test: /\.(mp4|webm)(\?.*)?$/, test: /\.(mp4|webm|wav|mp3|m4a|aac|oga)(\?.*)?$/,
loader: 'url', loader: 'url',
query: { query: {
limit: 10000, limit: 10000,
......
...@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => { ...@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => {
const config = { const config = {
moduleFileExtensions: ['jsx', 'js', 'json'], moduleFileExtensions: ['jsx', 'js', 'json'],
moduleNameMapper: { moduleNameMapper: {
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'), '^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
'^.+\\.css$': resolve('config/jest/CSSStub.js') '^.+\\.css$': resolve('config/jest/CSSStub.js')
}, },
scriptPreprocessor: resolve('config/jest/transform.js'), scriptPreprocessor: resolve('config/jest/transform.js'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment