web: Build a separate plugin polyfill target file.

A future commit will add a mechanism to inject this into `content.ts` in lieu of the old copy of this file.
This commit is contained in:
David Wendt 2023-02-15 00:05:20 -05:00 committed by kmeisthax
parent 85f544a6cc
commit efc6254366
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// This file is compiled and then injected into content.ts's compiled form.
import {
installPlugin,
FLASH_PLUGIN,
} from "ruffle-core/pkg/plugin-polyfill.js";
installPlugin(FLASH_PLUGIN);

View File

@ -86,6 +86,7 @@ module.exports = (env, _argv) => {
ruffle: "./src/ruffle.ts",
background: "./src/background.ts",
player: "./src/player.ts",
pluginPolyfill: "./src/plugin-polyfill.ts",
},
output: {
path: path.resolve(__dirname, "assets/dist/"),