diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4392a952..ff1418b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,8 +19,7 @@ jobs: path: .uibuild - run: | yarn - yarn build - yarn pack:production + yarn build:production - uses: actions/upload-artifact@v1 with: name: app.js diff --git a/build/webpack.js b/build/webpack.js index 5abf38f2..0eb0c1f3 100644 --- a/build/webpack.js +++ b/build/webpack.js @@ -1,4 +1,5 @@ /* eslint-disable import/no-extraneous-dependencies */ +const path = require('path'); const webpack = require('webpack'); const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin'); const { root } = require('./utils'); @@ -20,6 +21,9 @@ const build = async (type) => { new FriendlyErrorsPlugin({ clearConsole: false, }), + new webpack.ProvidePlugin({ + saslprep: path.resolve(__dirname, 'node_modules/saslprep/index.js'), + }), ], }; const compiler = webpack(config);