【问题标题】:How can I disable .rollup.cache folder from being created?如何禁用 .rollup.cache 文件夹的创建?
【发布时间】:2022-10-23 16:55:56
【问题描述】:

我正在使用汇总。

const bundle = await rollup({
  input: 'lib/publisher.tsx',
  plugins: [
    typescriptPlugin({
      compilerOptions: {
        jsx: 'react',
        target: 'es5',
        module: 'CommonJS',
        declaration: true,
        declarationDir: '',
        incremental: false
      }
    })
  ]
})

const output = await bundle.generate({})

是否可以禁用汇总创建 .rollup.cache 文件夹?

【问题讨论】:

    标签: caching rollup rollupjs


    【解决方案1】:

    您是否尝试将缓存设置为false?

    const bundle = await rollup({
      input: 'lib/publisher.tsx',
      cache: false,
      plugins: [
        typescriptPlugin({
          compilerOptions: {
            jsx: 'react',
            target: 'es5',
            module: 'CommonJS',
            declaration: true,
            declarationDir: '',
            incremental: false
          }
        })
      ]
    })
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-26
      • 1970-01-01
      • 1970-01-01
      • 2013-08-23
      • 2016-06-10
      • 1970-01-01
      • 1970-01-01
      • 2011-09-03
      相关资源
      最近更新 更多