Skip to content

Commit

Permalink
LPD-30581 Migrate oauth2-provider-web to esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
izaera authored and brianchandotcom committed Jul 17, 2024
1 parent 3deee97 commit e0bf497
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,36 @@
* SPDX-License-Identifier: [LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

const path = require('path');

module.exports = {
customBuild: {
esbuild: {
bundle: true,
entryNames: 'liferay',
entryPoints: [
path.resolve(
'src',
'main',
'resources',
'META-INF',
'resources',
'js',
'liferay.ts'
),
],
loader: {},
outdir: path.resolve(
'build',
'node',
'packageRunBuild',
'resources',
'js'
),
sourcemap: true,
target: ['es2020'],
},
},
main: 'src/main/resources/META-INF/resources/js/index.ts',
npmscripts: {},
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"name": "@liferay/oauth2-provider-web",
"private": true,
"scripts": {
"build": "node-scripts build",
"build": "node-scripts build:custom",
"checkFormat": "node-scripts format --check",
"format": "node-scripts format"
},
Expand Down
31 changes: 0 additions & 31 deletions modules/apps/oauth2-provider/oauth2-provider-web/webpack.config.js

This file was deleted.

0 comments on commit e0bf497

Please sign in to comment.