Commit Graph

8 Commits

Author SHA1 Message Date
relrelb 375269417f web: Set `__webpack_public_path__` in `load-ruffle.ts`
Use wasm-bindgen's built-in loader instead of relying on Webpack.
In order to still respect the `publicPath` config, set
`__webpack_public_path__` just before fetching the WebAssembly module.
This allows to no longer declare `.wasm` files as resource assets in
each `webpack.config.js`.
2021-09-08 02:25:05 -07:00
relrelb 28a155a099 web: Remove `config.publicPaths`
This simplifies the `publicPath` function and makes it useable inside
`fetchRuffle`.

Assuming `publicPaths` isn't used anywhere, this shouldn't be harmless.
2021-09-08 02:25:05 -07:00
relrelb 70938b849c web: Remove babel-eslint dependency
Not only it's deprecated, it's also not needed because ESLint's
built-in "es2021" environment seems to support everything we use.
2021-07-03 21:18:42 +03:00
relrelb f8a8b82c04 web: Cleanup ESLint configuration
* Cleanup .eslintrc.json files.
* Avoid unnecessary eslint-* directives.
2021-04-30 18:16:55 -07:00
Nathan Adams 41bf30efc8 web: Rename public_path to publicPath 2020-11-24 16:36:33 -08:00
Nathan Adams 11f68b90f9 web: Switch to using commonjs style require/exports
It looks like things still don't play nice with modules yet :(
2020-05-19 11:42:55 +02:00
Nathan Adams 55c9672921 web: Simplified export interface of ruffle-core 2020-05-19 11:42:54 +02:00
Nathan Adams b6523324ed web: Move each web package into a packages/ directory 2020-05-19 11:42:53 +02:00