Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit a3f9488

Browse files
committed
Move url to dev dependencies
It's only needed when bundling for the browser
1 parent 2161fb3 commit a3f9488

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

package-lock.json

Lines changed: 5 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
"http-string-parser": "0.0.6",
4848
"json-pointer": "0.6.0",
4949
"media-typer": "1.1.0",
50-
"tv4": "1.3.0",
51-
"url": "0.11.0"
50+
"tv4": "1.3.0"
5251
},
5352
"devDependencies": {
5453
"@rollup/plugin-json": "4.0.1",
@@ -70,7 +69,8 @@
7069
"rollup-plugin-node-resolve": "5.2.0",
7170
"rollup-plugin-terser": "5.3.0",
7271
"semantic-release": "15.14.0",
73-
"sinon": "7.5.0"
72+
"sinon": "7.5.0",
73+
"url": "0.11.0"
7474
},
7575
"repository": {
7676
"type": "git",

rollup.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ const buildCjs = {
4242
return true;
4343
}
4444

45+
// url is a built-in module and should not be bundled either
46+
if (id === 'url') {
47+
return true;
48+
}
49+
4550
return false;
4651
},
4752
plugins: [

0 commit comments

Comments
 (0)