File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 * @typedef {ProcessorOptions & {allowDangerousRemoteMdx?: boolean} } Options
1414 */
1515
16- import { URL } from 'url'
1716import assert from 'node:assert'
1817import { promises as fs } from 'node:fs'
1918import path from 'node:path'
Original file line number Diff line number Diff line change 99 */
1010
1111import { promises as fs } from 'fs'
12- import { URL , fileURLToPath } from 'url'
12+ import { fileURLToPath } from 'url'
1313import { test } from 'uvu'
1414import * as assert from 'uvu/assert'
1515import esbuild from 'esbuild'
Original file line number Diff line number Diff line change 77
88import { promises as fs } from 'fs'
99import { promisify } from 'util'
10- import { URL , fileURLToPath } from 'url'
10+ import { fileURLToPath } from 'url'
1111import { test } from 'uvu'
1212import * as assert from 'uvu/assert'
1313import webpack from 'webpack'
Original file line number Diff line number Diff line change 3939 * JSX runtime to use.
4040 */
4141
42- import { URL } from 'url'
4342import { analyze } from 'periscopic'
4443import { stringifyPosition } from 'unist-util-stringify-position'
4544import { positionFromEstree } from 'unist-util-position-from-estree'
Original file line number Diff line number Diff line change 33 */
44
55import { promises as fs } from 'fs'
6- import { URL } from 'url'
76import { test } from 'uvu'
87import * as assert from 'uvu/assert'
98import React from 'react'
Original file line number Diff line number Diff line change 33 */
44
55import { promises as fs } from 'fs'
6- import { URL , fileURLToPath } from 'url'
6+ import { fileURLToPath } from 'url'
77import { test } from 'uvu'
88import * as assert from 'uvu/assert'
99import { rollup } from 'rollup'
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- import url from 'url'
2+ import { fileURLToPath } from 'url'
33import process from 'process'
44import webpack from 'webpack'
55import ReactServerWebpackPlugin from 'react-server-dom-webpack/plugin'
@@ -13,17 +13,15 @@ webpack(
1313 mode : production ? 'production' : 'development' ,
1414 devtool : production ? 'source-map' : 'cheap-module-source-map' ,
1515 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 ) )
1917 ] ,
2018 output : {
2119 // RSC puts all chunks in `public/` (perhaps due to my weird doing),
2220 // but on a page `public/folder/index.html`, RSC/WP will then load
2321 // `public/folder/chunk.js`, even though it’s at `public/chunk.js`.
2422 // This fixes that!
2523 publicPath : '/' ,
26- path : url . fileURLToPath ( config . output ) ,
24+ path : fileURLToPath ( config . output ) ,
2725 filename : 'index.js'
2826 } ,
2927 module : {
You can’t perform that action at this time.
0 commit comments