[英]How to import js file as string with Rollup?
In Webpack, we have raw-loader to import files like .js as strings.在 Webpack 中,我们使用 raw-loader 将 .js 等文件作为字符串导入。 I'm using Rollup.我正在使用汇总。 Does Rollup has anything similar to that? Rollup 有类似的东西吗?
Turns out, you need a plugin for that.事实证明,你需要一个插件。
I found one today https://github.com/TrySound/rollup-plugin-string我今天找到了一个https://github.com/TrySound/rollup-plugin-string
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.