@docusaurus/core 4.0.0-canary-6929 → 4.0.0-canary-6930
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.
- package/lib/webpack/base.js +10 -0
- package/package.json +12 -12
package/lib/webpack/base.js
CHANGED
|
@@ -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-
|
|
4
|
+
"version": "4.0.0-canary-6930",
|
|
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-
|
|
31
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
32
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
33
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
34
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
35
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
36
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
30
|
+
"@docusaurus/babel": "4.0.0-canary-6930",
|
|
31
|
+
"@docusaurus/bundler": "4.0.0-canary-6930",
|
|
32
|
+
"@docusaurus/fs": "4.0.0-canary-6930",
|
|
33
|
+
"@docusaurus/glob": "4.0.0-canary-6930",
|
|
34
|
+
"@docusaurus/logger": "4.0.0-canary-6930",
|
|
35
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6930",
|
|
36
|
+
"@docusaurus/utils": "4.0.0-canary-6930",
|
|
37
|
+
"@docusaurus/utils-common": "4.0.0-canary-6930",
|
|
38
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6930",
|
|
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-
|
|
72
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
71
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6930",
|
|
72
|
+
"@docusaurus/types": "4.0.0-canary-6930",
|
|
73
73
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
74
74
|
"@types/escape-html": "^1.0.4",
|
|
75
75
|
"@types/history": "^4.7.11",
|