Skip to content

Commit f2a42f7

Browse files
docs: convert home page tut to esm (#7907)
1 parent 7730793 commit f2a42f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/components/Splash/second/left.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Start without a configuration file, or provide a custom **webpack.config.js**:
22

33
```js
4-
const path = require("node:path");
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
56

6-
module.exports = {
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
10+
export default {
711
entry: "./src/index.js",
812
output: {
913
path: path.resolve(__dirname, "dist"),

0 commit comments

Comments
 (0)