Skip to content

Commit 7a0d0de

Browse files
committed
Fix bundling issue and update build config
Resolved an issue with bundling the 'qr' module in the minified build by updating the Rollup configuration to use '@rollup/plugin-node-resolve'. Bumped version to 1.0.1 and updated changelog to reflect the fix. Added the node-resolve plugin to devDependencies.
1 parent 6e35ec0 commit 7a0d0de

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v1.0.1] - 2025-12-03
11+
12+
### Fixed
13+
- Fix bundling `qr` in minified module
14+
1015
## [v1.0.0] - 2025-12-23
1116

1217
Initial Release

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "@aegisjsproject/qr-encoder",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A QR encoder for node and browsers",
5-
"keywords": ["svg", "svg-encoder"],
5+
"keywords": [
6+
"svg",
7+
"svg-encoder"
8+
],
69
"type": "module",
710
"main": "./index.cjs",
811
"module": "./index.js",
@@ -73,6 +76,7 @@
7376
"devDependencies": {
7477
"@aegisjsproject/dev-server": "^1.0.5",
7578
"@aegisjsproject/http-utils": "^1.0.4",
79+
"@rollup/plugin-node-resolve": "^16.0.3",
7680
"@rollup/plugin-terser": "^0.4.4",
7781
"@shgysk8zer0/eslint-config": "^1.0.4",
7882
"@shgysk8zer0/http-server": "^1.1.1",

rollup.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import terser from '@rollup/plugin-terser';
2+
import resolve from '@rollup/plugin-node-resolve';
23

34
export default [{
45
input: 'index.js',
6+
external: ['qr'],
57
output: [{
68
file: 'index.cjs',
79
format: 'cjs',
8-
}, {
10+
}],
11+
}, {
12+
input: 'index.js',
13+
plugins: [resolve()],
14+
output: [{
915
file: 'index.min.js',
1016
format: 'module',
1117
plugins: [terser()],

0 commit comments

Comments
 (0)