Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# bedrock-webpack ChangeLog

## 11.5.0 - 2026-mm-dd

### Changed
- Update dependencies:
- `less-loader@13`
- `sass-loader@17`.
- Update all dev dependencies.
- `@digitalbazaar/eslint-config@8`.
- `eslint@9`.
- **NOTE**: Update supported platforms.
- Test on Node.js >=22.
- Update `engines.node` to `>=22`.
- Update README requirements section.

## 11.4.0 - 2025-09-21

### Changed
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ for development and to the [bedrock-views][] optimize command.

## Requirements

- npm v6+
- node v22+
- npm v11+

## Quick Examples

Expand Down Expand Up @@ -55,7 +56,7 @@ if(typeof MY_JSON !== 'undefined') {

## License

[Apache License, Version 2.0](LICENSE) Copyright 2017-2024 Digital Bazaar, Inc.
[Apache License, Version 2.0](LICENSE) Copyright 2017-2026 Digital Bazaar, Inc.

Other Bedrock libraries are available under a non-commercial license for uses
such as self-study, research, personal projects, or for evaluation purposes.
Expand Down
21 changes: 6 additions & 15 deletions .eslintrc.cjs → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright 2024 Digital Bazaar, Inc.
* Copyright 2022 - 2026 Digital Bazaar, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,17 +16,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

module.exports = {
root: true,
env: {
node: true
},
extends: [
'digitalbazaar',
'digitalbazaar/jsdoc',
'digitalbazaar/module'
],
rules: {
'unicorn/prefer-node-protocol': 'error'
}
};
import config from '@digitalbazaar/eslint-config/node-recommended';

export default [
...config
];
18 changes: 9 additions & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Copyright 2017 - 2025 Digital Bazaar, Inc.
* Copyright 2017 - 2026 Digital Bazaar, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -150,7 +150,7 @@ bedrock.events.on('bedrock-views.bundle.run', async options => {
modules: [
// FIXME: this should be a param
// FIXME: improve this
path.dirname(bedrock.config.views.bundle.paths.input.root),
path.dirname(bedrock.config.views.bundle.paths.input.root)
]
}
};
Expand All @@ -163,7 +163,7 @@ bedrock.events.on('bedrock-views.bundle.run', async options => {
paths,
configs: [
rootConfig,
...overrideConfigs,
...overrideConfigs
],
optimize: options.optimize,
watch: options.watch
Expand Down Expand Up @@ -337,7 +337,7 @@ export async function bundle(options = {}) {
corejs: '3.45',
bugfixes: true,
debug: command.webpackBabelDebug === 'true',
targets: ['defaults', 'not IE 11'],
targets: ['defaults', 'not IE 11']
}
]
]
Expand Down Expand Up @@ -389,7 +389,7 @@ export async function bundle(options = {}) {
hotReload: hmr,
prettify: !isProduction
}
},
}
/*
// FIXME: fix or remove due to webpack v5 path issues
{
Expand Down Expand Up @@ -445,7 +445,7 @@ export async function bundle(options = {}) {
// check if path exists
try {
await fs.promises.access(root, fs.constants.R_OK);
} catch(e) {
} catch {
return;
}
// check current level
Expand Down Expand Up @@ -526,12 +526,12 @@ export async function bundle(options = {}) {
terserOptions.terserOptions.output =
terserOptions.terserOptions.output || {};
terserOptions.terserOptions.output.comments = {
/* eslint-disable quote-props */
/* eslint-disable @stylistic/quote-props */
'true': true,
'all': 'all',
'some': 'some',
'false': false
/* eslint-enable quote-props */
/* eslint-enable @stylistic/quote-props */
}[command.webpackJsComments];
}
const cfg = {
Expand Down Expand Up @@ -667,7 +667,7 @@ export async function bundle(options = {}) {
// eslint-disable-next-line no-unused-vars
compiler.hooks.invalid.tap('bedrock-webpack', (filename, changeTime) => {
logger.info('watch bundle invalidated', {
filename,
filename
//changeTime
});
});
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"main": "./lib/index.js",
"scripts": {
"lint": "eslint --ext .cjs,.js ."
"lint": "eslint"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,10 +36,10 @@
"file-size": "^1.0.0",
"html-webpack-plugin": "^5.6.3",
"less": "^4.1.2",
"less-loader": "^12.2.0",
"less-loader": "^13.0.0",
"regenerator-runtime": "^0.14.1",
"sass": "^1.80.3",
"sass-loader": "^16.0.2",
"sass-loader": "^17.0.0",
"stats-webpack-plugin": "^0.7.0",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.14",
Expand All @@ -57,12 +57,10 @@
"lib": "./lib"
},
"engines": {
"node": ">=18"
"node": ">=22"
},
"devDependencies": {
"eslint": "^8.57.1",
"eslint-config-digitalbazaar": "^5.0.1",
"eslint-plugin-jsdoc": "^50.4.1",
"eslint-plugin-unicorn": "^56.0.0"
"@digitalbazaar/eslint-config": "^8.0.1",
"eslint": "^9.39.4"
}
}
Loading