返回 marp
babel.config.js
根目录 / website / babel.config.js
1 const path = require('path')
2
3 module.exports = {
4 presets: [
5 [
6 'next/babel',
7 {
8 'styled-jsx': {
9 plugins: [
10 [
11 require.resolve('styled-jsx-plugin-postcss'),
12 { path: path.resolve(__dirname, './postcss.config.js') },
13 ],
14 ],
15 },
16 },
17 ],
18 ],
19 }
20
20 lines JAVASCRIPT