We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用create-dumi生成的最简模板,在代码中引入了json文件会报错
dumi1.x可以正常引用json文件,2.x无法正常运行
只要引用json文件就会解析错误,项目template用的是Static Site
The text was updated successfully, but these errors were encountered:
添加了json-loader解析,正常跑起来了
chainWebpack(memo, { env, webpack }) { memo.module .rule('compile') .type('javascript/auto') .test(/\.json$/) .use('babel') .loader('json-loader'); } // webpack比较菜,不清楚这样有无问题,还是希望dumi内置一下吧
Sorry, something went wrong.
fix: json source module compile failed (#1392)
daf46fa
v2.0.18 已修复
No branches or pull requests
使用create-dumi生成的最简模板,在代码中引入了json文件会报错
Versions
Steps to reproduce
What is Expected?
dumi1.x可以正常引用json文件,2.x无法正常运行
What is actually happening?
只要引用json文件就会解析错误,项目template用的是Static Site
The text was updated successfully, but these errors were encountered: