以前在Parcel v1 中你可以只使用类似 @svgr/parcel-plugin-svgr 的东西。包裹插件。这将使您能够像使用CRA 一样使用内联SVG: import Star from './star.svg' const App ...
確定! 回上一頁