File tree 7 files changed +6
-11
lines changed
7 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 13
13
* @typedef {ProcessorOptions & {allowDangerousRemoteMdx?: boolean} } Options
14
14
*/
15
15
16
- import { URL } from 'url'
17
16
import assert from 'node:assert'
18
17
import { promises as fs } from 'node:fs'
19
18
import path from 'node:path'
Original file line number Diff line number Diff line change 9
9
*/
10
10
11
11
import { promises as fs } from 'fs'
12
- import { URL , fileURLToPath } from 'url'
12
+ import { fileURLToPath } from 'url'
13
13
import { test } from 'uvu'
14
14
import * as assert from 'uvu/assert'
15
15
import esbuild from 'esbuild'
Original file line number Diff line number Diff line change 7
7
8
8
import { promises as fs } from 'fs'
9
9
import { promisify } from 'util'
10
- import { URL , fileURLToPath } from 'url'
10
+ import { fileURLToPath } from 'url'
11
11
import { test } from 'uvu'
12
12
import * as assert from 'uvu/assert'
13
13
import webpack from 'webpack'
Original file line number Diff line number Diff line change 39
39
* JSX runtime to use.
40
40
*/
41
41
42
- import { URL } from 'url'
43
42
import { analyze } from 'periscopic'
44
43
import { stringifyPosition } from 'unist-util-stringify-position'
45
44
import { positionFromEstree } from 'unist-util-position-from-estree'
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import { promises as fs } from 'fs'
6
- import { URL } from 'url'
7
6
import { test } from 'uvu'
8
7
import * as assert from 'uvu/assert'
9
8
import React from 'react'
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import { promises as fs } from 'fs'
6
- import { URL , fileURLToPath } from 'url'
6
+ import { fileURLToPath } from 'url'
7
7
import { test } from 'uvu'
8
8
import * as assert from 'uvu/assert'
9
9
import { rollup } from 'rollup'
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
- import url from 'url'
2
+ import { fileURLToPath } from 'url'
3
3
import process from 'process'
4
4
import webpack from 'webpack'
5
5
import ReactServerWebpackPlugin from 'react-server-dom-webpack/plugin'
@@ -13,17 +13,15 @@ webpack(
13
13
mode : production ? 'production' : 'development' ,
14
14
devtool : production ? 'source-map' : 'cheap-module-source-map' ,
15
15
entry : [
16
- url . fileURLToPath (
17
- new URL ( '../docs/_asset/index.client.js' , import . meta. url )
18
- )
16
+ fileURLToPath ( new URL ( '../docs/_asset/index.client.js' , import . meta. url ) )
19
17
] ,
20
18
output : {
21
19
// RSC puts all chunks in `public/` (perhaps due to my weird doing),
22
20
// but on a page `public/folder/index.html`, RSC/WP will then load
23
21
// `public/folder/chunk.js`, even though it’s at `public/chunk.js`.
24
22
// This fixes that!
25
23
publicPath : '/' ,
26
- path : url . fileURLToPath ( config . output ) ,
24
+ path : fileURLToPath ( config . output ) ,
27
25
filename : 'index.js'
28
26
} ,
29
27
module : {
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Mar 16, 2022
Successfully deployed to the following URLs: