Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

use webwackify for webworkers to support webpack bundle #173

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

mjneil
Copy link
Contributor

@mjneil mjneil commented Mar 6, 2018

Regarding the require.resolve:

webpack resolves module names to ids during compile time. One of the issues with webworkify-webpack-dropin was that it used regex to search for the require statements to get the resolved module id so it could properly setup the bootstrapfn to start at the right module. This broke in some cases with minification because the regex would get messed up. By passing the module id directly from require.resolve, you dont have to do any of the regex work, and can just build the entire module list and have the starting id given to you. This problem is described in more detail here videojs/videojs-contrib-hls#600 (comment)

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mjneil mjneil merged commit 3d20b8a into videojs:master Mar 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants