@docusaurus/core 4.0.0-canary-6929 → 4.0.0-canary-6935

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/webpack/base.js +10 -0
  2. package/package.json +12 -12
@@ -210,6 +210,16 @@ async function createBaseConfig({ props, isServer, minify, configureWebpackUtils
210
210
  },
211
211
  },
212
212
  module: {
213
+ parser: {
214
+ javascript: {
215
+ // Allow referencing assets with the standard and portable syntax:
216
+ // new URL('./img.png', import.meta.url)
217
+ // Relative URLs are needed for SSR: absolute URLs would otherwise
218
+ // be resolved against the server bundle file:// URL
219
+ // See https://github.com/facebook/docusaurus/pull/12655
220
+ url: 'relative',
221
+ },
222
+ },
213
223
  rules: [
214
224
  assetRuleUtils.rules.assets(),
215
225
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "4.0.0-canary-6929",
4
+ "version": "4.0.0-canary-6935",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,15 +27,15 @@
27
27
  "url": "https://github.com/facebook/docusaurus/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@docusaurus/babel": "4.0.0-canary-6929",
31
- "@docusaurus/bundler": "4.0.0-canary-6929",
32
- "@docusaurus/fs": "4.0.0-canary-6929",
33
- "@docusaurus/glob": "4.0.0-canary-6929",
34
- "@docusaurus/logger": "4.0.0-canary-6929",
35
- "@docusaurus/mdx-loader": "4.0.0-canary-6929",
36
- "@docusaurus/utils": "4.0.0-canary-6929",
37
- "@docusaurus/utils-common": "4.0.0-canary-6929",
38
- "@docusaurus/utils-validation": "4.0.0-canary-6929",
30
+ "@docusaurus/babel": "4.0.0-canary-6935",
31
+ "@docusaurus/bundler": "4.0.0-canary-6935",
32
+ "@docusaurus/fs": "4.0.0-canary-6935",
33
+ "@docusaurus/glob": "4.0.0-canary-6935",
34
+ "@docusaurus/logger": "4.0.0-canary-6935",
35
+ "@docusaurus/mdx-loader": "4.0.0-canary-6935",
36
+ "@docusaurus/utils": "4.0.0-canary-6935",
37
+ "@docusaurus/utils-common": "4.0.0-canary-6935",
38
+ "@docusaurus/utils-validation": "4.0.0-canary-6935",
39
39
  "@rspack/core": "^2.2.3",
40
40
  "@rspack/dev-server": "^2.2.1",
41
41
  "boxen": "^9.0.0",
@@ -68,8 +68,8 @@
68
68
  "webpack-merge": "^6.0.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@docusaurus/module-type-aliases": "4.0.0-canary-6929",
72
- "@docusaurus/types": "4.0.0-canary-6929",
71
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6935",
72
+ "@docusaurus/types": "4.0.0-canary-6935",
73
73
  "@total-typescript/shoehorn": "^0.1.2",
74
74
  "@types/escape-html": "^1.0.4",
75
75
  "@types/history": "^4.7.11",