-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset relocations #39
Conversation
Note this is currently failing the self-build as webpack loaders aren't currently supported by ncc itself. Currently looking into options. |
The first flaw in this approach was that we don't want to emit "js" files as assets, which this trick would naturally do. The reason for this is that we might then be requireing an unbuilt file, with all its local requires etc... which wouldn't work. I've just added a fix such that we only emit assets when the static file is not a ".js" or ".mjs" file, leaving those fully to webpack to handle. |
I finally got the self-build running again here. The final approach was to build the asset-relocator.js file separately in the build script, and then ensure that the webpack_require within the build output will always fallback to the Node require in the build before throwing a not found error by hooking into the context module output. |
8ffb96b
to
dcc8ee3
Compare
* Create dependabot.yml * chore(deps): bump styfle/cancel-workflow-action from 0.8.0 to 0.9.1 (#1) Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) from 0.8.0 to 0.9.1. - [Release notes](https://github.com/styfle/cancel-workflow-action/releases) - [Commits](styfle/cancel-workflow-action@0.8.0...0.9.1) --- updated-dependencies: - dependency-name: styfle/cancel-workflow-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @azure/cosmos from 2.1.7 to 3.12.3 (#3) * chore(deps-dev): bump @azure/cosmos from 2.1.7 to 3.12.3 Bumps [@azure/cosmos](https://github.com/Azure/azure-sdk-for-js) from 2.1.7 to 3.12.3. - [Release notes](https://github.com/Azure/azure-sdk-for-js/releases) - [Commits](https://github.com/Azure/azure-sdk-for-js/commits/@azure/cosmos_3.12.3) --- updated-dependencies: - dependency-name: "@azure/cosmos" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update ci.yml Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com> * chore(deps-dev): bump firebase-admin from 6.5.1 to 9.11.0 (#4) Bumps [firebase-admin](https://github.com/firebase/firebase-admin-node) from 6.5.1 to 9.11.0. - [Release notes](https://github.com/firebase/firebase-admin-node/releases) - [Commits](firebase/firebase-admin-node@v6.5.1...v9.11.0) --- updated-dependencies: - dependency-name: firebase-admin dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump mariadb from 2.5.3 to 2.5.4 (#5) Bumps [mariadb](https://github.com/mariadb-corporation/mariadb-connector-nodejs) from 2.5.3 to 2.5.4. - [Release notes](https://github.com/mariadb-corporation/mariadb-connector-nodejs/releases) - [Changelog](https://github.com/mariadb-corporation/mariadb-connector-nodejs/blob/master/CHANGELOG.md) - [Commits](mariadb-corporation/mariadb-connector-nodejs@2.5.3...2.5.4) --- updated-dependencies: - dependency-name: mariadb dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dependabot.yml * chore(deps-dev): bump cowsay from 1.4.0 to 1.5.0 (#8) Bumps [cowsay](https://github.com/piuccio/cowsay) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/piuccio/cowsay/releases) - [Commits](piuccio/cowsay@v1.4.0...v1.5.0) --- updated-dependencies: - dependency-name: cowsay dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump ioredis from 4.24.5 to 4.27.6 (#10) Bumps [ioredis](https://github.com/luin/ioredis) from 4.24.5 to 4.27.6. - [Release notes](https://github.com/luin/ioredis/releases) - [Changelog](https://github.com/luin/ioredis/blob/master/Changelog.md) - [Commits](redis/ioredis@v4.24.5...v4.27.6) --- updated-dependencies: - dependency-name: ioredis dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump glob from 7.1.6 to 7.1.7 (#11) Bumps [glob](https://github.com/isaacs/node-glob) from 7.1.6 to 7.1.7. - [Release notes](https://github.com/isaacs/node-glob/releases) - [Changelog](https://github.com/isaacs/node-glob/blob/master/changelog.md) - [Commits](isaacs/node-glob@v7.1.6...v7.1.7) --- updated-dependencies: - dependency-name: glob dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dependabot.yml * chore(deps-dev): bump highlights from 3.1.4 to 3.1.6 (#12) Bumps [highlights](https://github.com/atom/highlights) from 3.1.4 to 3.1.6. - [Release notes](https://github.com/atom/highlights/releases) - [Changelog](https://github.com/atom/highlights/blob/master/CHANGELOG.md) - [Commits](atom/highlights@v3.1.4...v3.1.6) --- updated-dependencies: - dependency-name: highlights dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump socket.io from 2.4.1 to 4.1.3 (#16) Bumps [socket.io](https://github.com/socketio/socket.io) from 2.4.1 to 4.1.3. - [Release notes](https://github.com/socketio/socket.io/releases) - [Changelog](https://github.com/socketio/socket.io/blob/master/CHANGELOG.md) - [Commits](socketio/socket.io@2.4.1...4.1.3) --- updated-dependencies: - dependency-name: socket.io dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump analytics-node from 3.5.0 to 5.0.0 (#18) Bumps [analytics-node](https://github.com/segmentio/analytics-node) from 3.5.0 to 5.0.0. - [Release notes](https://github.com/segmentio/analytics-node/releases) - [Changelog](https://github.com/segmentio/analytics-node/blob/master/History.md) - [Commits](segmentio/analytics-node@v3.5.0...v5.0.0) --- updated-dependencies: - dependency-name: analytics-node dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump canvas from 2.7.0 to 2.8.0 (#22) Bumps [canvas](https://github.com/Automattic/node-canvas) from 2.7.0 to 2.8.0. - [Release notes](https://github.com/Automattic/node-canvas/releases) - [Changelog](https://github.com/Automattic/node-canvas/blob/master/CHANGELOG.md) - [Commits](Automattic/node-canvas@v2.7.0...v2.8.0) --- updated-dependencies: - dependency-name: canvas dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump got from 9.6.0 to 11.8.2 (#23) Bumps [got](https://github.com/sindresorhus/got) from 9.6.0 to 11.8.2. - [Release notes](https://github.com/sindresorhus/got/releases) - [Commits](sindresorhus/got@v9.6.0...v11.8.2) --- updated-dependencies: - dependency-name: got dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump hot-shots from 5.9.2 to 8.5.0 (#26) Bumps [hot-shots](https://github.com/brightcove/hot-shots) from 5.9.2 to 8.5.0. - [Release notes](https://github.com/brightcove/hot-shots/releases) - [Changelog](https://github.com/brightcove/hot-shots/blob/master/CHANGES.md) - [Commits](brightcove/hot-shots@v5.9.2...v8.5.0) --- updated-dependencies: - dependency-name: hot-shots dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump azure-storage from 2.10.3 to 2.10.4 (#30) Bumps [azure-storage](https://github.com/Azure/azure-storage-node) from 2.10.3 to 2.10.4. - [Release notes](https://github.com/Azure/azure-storage-node/releases) - [Changelog](https://github.com/Azure/azure-storage-node/blob/master/ChangeLog.md) - [Commits](https://github.com/Azure/azure-storage-node/commits) --- updated-dependencies: - dependency-name: azure-storage dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump tsconfig-paths from 3.9.0 to 3.10.1 (#37) Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 3.9.0 to 3.10.1. - [Release notes](https://github.com/dividab/tsconfig-paths/releases) - [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md) - [Commits](dividab/tsconfig-paths@v3.9.0...v3.10.1) --- updated-dependencies: - dependency-name: tsconfig-paths dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump twilio from 3.59.0 to 3.66.1 (#38) Bumps [twilio](https://github.com/twilio/twilio-node) from 3.59.0 to 3.66.1. - [Release notes](https://github.com/twilio/twilio-node/releases) - [Changelog](https://github.com/twilio/twilio-node/blob/main/CHANGES.md) - [Commits](twilio/twilio-node@3.59.0...3.66.1) --- updated-dependencies: - dependency-name: twilio dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @google-cloud/firestore from 2.6.1 to 4.14.0 (#19) Bumps [@google-cloud/firestore](https://github.com/googleapis/nodejs-firestore) from 2.6.1 to 4.14.0. - [Release notes](https://github.com/googleapis/nodejs-firestore/releases) - [Changelog](https://github.com/googleapis/nodejs-firestore/blob/master/CHANGELOG.md) - [Commits](googleapis/nodejs-firestore@v2.6.1...v4.14.0) --- updated-dependencies: - dependency-name: "@google-cloud/firestore" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dependabot.yml * chore(deps-dev): bump stripe from 6.36.0 to 8.167.0 (#20) Bumps [stripe](https://github.com/stripe/stripe-node) from 6.36.0 to 8.167.0. - [Release notes](https://github.com/stripe/stripe-node/releases) - [Changelog](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md) - [Commits](stripe/stripe-node@v6.36.0...v8.167.0) --- updated-dependencies: - dependency-name: stripe dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dependabot.yml * chore(deps-dev): bump mkdirp from 0.5.5 to 1.0.4 (#25) Bumps [mkdirp](https://github.com/isaacs/node-mkdirp) from 0.5.5 to 1.0.4. - [Release notes](https://github.com/isaacs/node-mkdirp/releases) - [Changelog](https://github.com/isaacs/node-mkdirp/blob/master/CHANGELOG.md) - [Commits](isaacs/node-mkdirp@v0.5.5...v1.0.4) --- updated-dependencies: - dependency-name: mkdirp dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump node-gyp from 3.8.0 to 8.1.0 (#28) Bumps [node-gyp](https://github.com/nodejs/node-gyp) from 3.8.0 to 8.1.0. - [Release notes](https://github.com/nodejs/node-gyp/releases) - [Changelog](https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md) - [Commits](nodejs/node-gyp@v3.8.0...v8.1.0) --- updated-dependencies: - dependency-name: node-gyp dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump graphql from 14.7.0 to 15.5.1 (#35) Bumps [graphql](https://github.com/graphql/graphql-js) from 14.7.0 to 15.5.1. - [Release notes](https://github.com/graphql/graphql-js/releases) - [Commits](graphql/graphql-js@v14.7.0...v15.5.1) --- updated-dependencies: - dependency-name: graphql dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump react and react-dom (#61) Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). These dependencies needed to be updated together. Updates `react` from 16.14.0 to 17.0.2 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react) Updates `react-dom` from 16.14.0 to 17.0.2 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react-dom) --- updated-dependencies: - dependency-name: react dependency-type: direct:development update-type: version-update:semver-major - dependency-name: react-dom dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @bugsnag/js from 5.2.0 to 7.11.0 (#59) Bumps [@bugsnag/js](https://github.com/bugsnag/bugsnag-js) from 5.2.0 to 7.11.0. - [Release notes](https://github.com/bugsnag/bugsnag-js/releases) - [Changelog](https://github.com/bugsnag/bugsnag-js/blob/next/CHANGELOG.md) - [Commits](bugsnag/bugsnag-js@v5.2.0...v7.11.0) --- updated-dependencies: - dependency-name: "@bugsnag/js" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump codecov from 3.8.1 to 3.8.3 (#57) Bumps [codecov](https://github.com/codecov/codecov-node) from 3.8.1 to 3.8.3. - [Release notes](https://github.com/codecov/codecov-node/releases) - [Changelog](https://github.com/codecov/codecov-node/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-node@v3.8.1...v3.8.3) --- updated-dependencies: - dependency-name: codecov dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @sentry/node from 4.6.6 to 6.10.0 (#55) Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 4.6.6 to 6.10.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-javascript@4.6.6...6.10.0) --- updated-dependencies: - dependency-name: "@sentry/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump consolidate from 0.15.1 to 0.16.0 (#53) Bumps [consolidate](https://github.com/tj/consolidate.js) from 0.15.1 to 0.16.0. - [Release notes](https://github.com/tj/consolidate.js/releases) - [Changelog](https://github.com/tj/consolidate.js/blob/master/History.md) - [Commits](tj/consolidate.js@0.15.1...v0.16.0) --- updated-dependencies: - dependency-name: consolidate dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump terser from 5.6.1 to 5.7.1 (#52) Bumps [terser](https://github.com/terser/terser) from 5.6.1 to 5.7.1. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](terser/terser@v5.6.1...v5.7.1) --- updated-dependencies: - dependency-name: terser dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump mongoose from 5.12.2 to 5.13.5 (#51) Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.12.2 to 5.13.5. - [Release notes](https://github.com/Automattic/mongoose/releases) - [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md) - [Commits](Automattic/mongoose@5.12.2...5.13.5) --- updated-dependencies: - dependency-name: mongoose dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump license-webpack-plugin from 2.3.11 to 2.3.20 (#50) Bumps [license-webpack-plugin](https://github.com/xz64/license-webpack-plugin) from 2.3.11 to 2.3.20. - [Release notes](https://github.com/xz64/license-webpack-plugin/releases) - [Changelog](https://github.com/xz64/license-webpack-plugin/blob/master/CHANGELOG.md) - [Commits](xz64/license-webpack-plugin@v2.3.11...v2.3.20) --- updated-dependencies: - dependency-name: license-webpack-plugin dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump rxjs from 6.6.6 to 7.3.0 (#49) Bumps [rxjs](https://github.com/reactivex/rxjs) from 6.6.6 to 7.3.0. - [Release notes](https://github.com/reactivex/rxjs/releases) - [Changelog](https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md) - [Commits](ReactiveX/rxjs@6.6.6...7.3.0) --- updated-dependencies: - dependency-name: rxjs dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump passport-google-oauth from 1.0.0 to 2.0.0 (#48) Bumps [passport-google-oauth](https://github.com/jaredhanson/passport-google-oauth) from 1.0.0 to 2.0.0. - [Release notes](https://github.com/jaredhanson/passport-google-oauth/releases) - [Commits](jaredhanson/passport-google-oauth@v1.0.0...v2.0.0) --- updated-dependencies: - dependency-name: passport-google-oauth dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump pg from 7.18.2 to 8.7.1 (#46) Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 7.18.2 to 8.7.1. - [Release notes](https://github.com/brianc/node-postgres/releases) - [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md) - [Commits](https://github.com/brianc/node-postgres/commits/pg@8.7.1/packages/pg) --- updated-dependencies: - dependency-name: pg dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump arg from 4.1.3 to 5.0.0 (#45) Bumps [arg](https://github.com/vercel/arg) from 4.1.3 to 5.0.0. - [Release notes](https://github.com/vercel/arg/releases) - [Commits](vercel/arg@4.1.3...5.0.0) --- updated-dependencies: - dependency-name: arg dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump redis from 3.1.1 to 3.1.2 (#43) Bumps [redis](https://github.com/NodeRedis/node-redis) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/NodeRedis/node-redis/releases) - [Changelog](https://github.com/NodeRedis/node-redis/blob/master/CHANGELOG.md) - [Commits](redis/node-redis@v3.1.1...v3.1.2) --- updated-dependencies: - dependency-name: redis dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jimp from 0.5.6 to 0.16.1 (#41) Bumps [jimp](https://github.com/oliver-moran/jimp) from 0.5.6 to 0.16.1. - [Release notes](https://github.com/oliver-moran/jimp/releases) - [Changelog](https://github.com/oliver-moran/jimp/blob/master/CHANGELOG.md) - [Commits](https://github.com/oliver-moran/jimp/commits/v0.16.1) --- updated-dependencies: - dependency-name: jimp dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump pdf2json from 1.2.0 to 1.2.3 (#39) Bumps [pdf2json](https://github.com/modesty/pdf2json) from 1.2.0 to 1.2.3. - [Release notes](https://github.com/modesty/pdf2json/releases) - [Commits](https://github.com/modesty/pdf2json/commits) --- updated-dependencies: - dependency-name: pdf2json dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @tensorflow/tfjs-node from 0.3.2 to 3.8.0 (#34) Bumps [@tensorflow/tfjs-node](https://github.com/tensorflow/tfjs) from 0.3.2 to 3.8.0. - [Release notes](https://github.com/tensorflow/tfjs/releases) - [Changelog](https://github.com/tensorflow/tfjs/blob/master/cloudbuild-release.yml) - [Commits](tensorflow/tfjs@v0.3.2...tfjs-v3.8.0) --- updated-dependencies: - dependency-name: "@tensorflow/tfjs-node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump fetch-h2 from 1.2.3 to 3.0.0 (#29) Bumps [fetch-h2](https://github.com/grantila/fetch-h2) from 1.2.3 to 3.0.0. - [Release notes](https://github.com/grantila/fetch-h2/releases) - [Commits](grantila/fetch-h2@v1.2.3...v3.0.0) --- updated-dependencies: - dependency-name: fetch-h2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump auth0 from 2.34.0 to 2.36.1 (#60) Bumps [auth0](https://github.com/auth0/node-auth0) from 2.34.0 to 2.36.1. - [Release notes](https://github.com/auth0/node-auth0/releases) - [Changelog](https://github.com/auth0/node-auth0/blob/master/CHANGELOG.md) - [Commits](auth0/node-auth0@v2.34.0...v2.36.1) --- updated-dependencies: - dependency-name: auth0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update ci.yml * chore(deps-dev): bump vue and vue-server-renderer (#63) * chore(deps-dev): bump vue from 2.6.12 to 2.6.14 (#54) Bumps [vue](https://github.com/vuejs/vue) from 2.6.12 to 2.6.14. - [Release notes](https://github.com/vuejs/vue/releases) - [Commits](vuejs/vue@v2.6.12...v2.6.14) --- updated-dependencies: - dependency-name: vue dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump vue-server-renderer from 2.6.12 to 2.6.14 (#21) Bumps [vue-server-renderer](https://github.com/vuejs/vue) from 2.6.12 to 2.6.14. - [Release notes](https://github.com/vuejs/vue/releases) - [Commits](vuejs/vue@v2.6.12...v2.6.14) --- updated-dependencies: - dependency-name: vue-server-renderer dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump lighthouse from 5.6.0 to 8.1.0 (#58) Bumps [lighthouse](https://github.com/GoogleChrome/lighthouse) from 5.6.0 to 8.1.0. - [Release notes](https://github.com/GoogleChrome/lighthouse/releases) - [Changelog](https://github.com/GoogleChrome/lighthouse/blob/master/changelog.md) - [Commits](GoogleChrome/lighthouse@v5.6.0...v8.1.0) --- updated-dependencies: - dependency-name: lighthouse dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump leveldown from 5.6.0 to 6.0.0 (#42) Bumps [leveldown](https://github.com/Level/leveldown) from 5.6.0 to 6.0.0. - [Release notes](https://github.com/Level/leveldown/releases) - [Changelog](https://github.com/Level/leveldown/blob/master/CHANGELOG.md) - [Commits](Level/leveldown@v5.6.0...v6.0.0) --- updated-dependencies: - dependency-name: leveldown dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @google-cloud/bigquery from 2.1.0 to 5.7.0 (#33) Bumps [@google-cloud/bigquery](https://github.com/googleapis/nodejs-bigquery) from 2.1.0 to 5.7.0. - [Release notes](https://github.com/googleapis/nodejs-bigquery/releases) - [Changelog](https://github.com/googleapis/nodejs-bigquery/blob/master/CHANGELOG.md) - [Commits](googleapis/nodejs-bigquery@v2.1.0...v5.7.0) --- updated-dependencies: - dependency-name: "@google-cloud/bigquery" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @ffmpeg-installer/ffmpeg from 1.0.20 to 1.1.0 (#47) Bumps [@ffmpeg-installer/ffmpeg](https://github.com/kribblo/node-ffmpeg-installer) from 1.0.20 to 1.1.0. - [Release notes](https://github.com/kribblo/node-ffmpeg-installer/releases) - [Commits](https://github.com/kribblo/node-ffmpeg-installer/commits) --- updated-dependencies: - dependency-name: "@ffmpeg-installer/ffmpeg" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @slack/web-api from 5.15.0 to 6.3.0 (#17) Bumps [@slack/web-api](https://github.com/slackapi/node-slack-sdk) from 5.15.0 to 6.3.0. - [Release notes](https://github.com/slackapi/node-slack-sdk/releases) - [Commits](https://github.com/slackapi/node-slack-sdk/compare/@slack/web-api@5.15.0...@slack/web-api@6.3.0) --- updated-dependencies: - dependency-name: "@slack/web-api" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump sequelize from 5.22.4 to 6.6.5 (#40) Bumps [sequelize](https://github.com/sequelize/sequelize) from 5.22.4 to 6.6.5. - [Release notes](https://github.com/sequelize/sequelize/releases) - [Commits](sequelize/sequelize@v5.22.4...v6.6.5) --- updated-dependencies: - dependency-name: sequelize dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump sharp from 0.25.4 to 0.28.3 (#56) Bumps [sharp](https://github.com/lovell/sharp) from 0.25.4 to 0.28.3. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/master/docs/changelog.md) - [Commits](lovell/sharp@v0.25.4...v0.28.3) --- updated-dependencies: - dependency-name: sharp dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump aws-sdk from 2.874.0 to 2.958.0 (#14) Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.874.0 to 2.958.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-js@v2.874.0...v2.958.0) --- updated-dependencies: - dependency-name: aws-sdk dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump pdfkit from 0.8.3 to 0.12.1 (#27) Bumps [pdfkit](https://github.com/foliojs/pdfkit) from 0.8.3 to 0.12.1. - [Release notes](https://github.com/foliojs/pdfkit/releases) - [Changelog](https://github.com/foliojs/pdfkit/blob/master/CHANGELOG.md) - [Commits](foliojs/pdfkit@v0.8.3...v0.12.1) --- updated-dependencies: - dependency-name: pdfkit dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump vm2 from 3.9.2 to 3.9.3 (#36) Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.2 to 3.9.3. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](patriksimek/vm2@v3.9.2...3.9.3) --- updated-dependencies: - dependency-name: vm2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dependabot.yml * Update ci.yml * Update .github/dependabot.yml Co-authored-by: Steven <steven@ceriously.com>
This implements #17 emitting assets as separate files.
It is based to the sourcemap branch as I was using that for debugging, but we can always rebase to master too.
It's a bit of a trick, which I'm not sure if anything else does, which is basically to detect references to
__dirname
or__filename
then to statically analyze outward from those to see if it ends up forming a statically analyzable string literal to a known file path. In the process it will support path functions etc in this computation thanks to the browserify fs static-eval lib.If it does find a file, it emits it as an asset of the build and relocates that static expression to reference the build output asset folder. So it's almost slightly lower level than the brfs approach in that we don't even need to analyze if there was an
fs.readFile
etc.This implements #17, and fixes #2 as well as the saslprep bug.
The grpc bug in #33 is still failing unfortunately the issue is that we have:
being successfully rewritten by this loader into:
but the issue is that
binding_path
is then passed torequire(binding_path)
where Webpack will then rewrite that require to its own require, which throws during runtime.One hack might even be to rewrite the runtime webpack require to fallback to using the local require instead of failing outright... will see if I can implement something along those lines tomorrow.