forked from ffmpegwasm/ffmpeg.wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const { devDependencies } = require('../../package.json'); | ||
import pkg from '../../package.json'; | ||
|
||
/* | ||
* Default options for browser environment | ||
*/ | ||
const corePath = typeof process !== 'undefined' && process.env.NODE_ENV === 'development' | ||
? new URL('/node_modules/@ffmpeg/core/dist/ffmpeg-core.js', import.meta.url).href | ||
: `https://unpkg.com/@ffmpeg/core@${devDependencies['@ffmpeg/core'].substring(1)}/dist/ffmpeg-core.js`; | ||
: `https://unpkg.com/@ffmpeg/core@${pkg.devDependencies['@ffmpeg/core'].substring(1)}/dist/ffmpeg-core.js`; | ||
|
||
export default { corePath }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const defaultOptions = require('./defaultOptions'); | ||
const { getCreateFFmpegCore } = require('./getCreateFFmpegCore'); | ||
const { fetchFile } = require('./fetchFile'); | ||
import defaultOptions from './defaultOptions'; | ||
import { getCreateFFmpegCore } from './getCreateFFmpegCore'; | ||
import { fetchFile } from './fetchFile'; | ||
|
||
export { defaultOptions, getCreateFFmpegCore, fetchFile }; |