question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom transformer does not run when cache exists

See original GitHub issue

What happens and why it is wrong

customTransformer does not works then rpt2_cache folder exists

Environment

Windows10 1903 ,WSL Terminal ( Ubuntu )

Versions

  • typescript:3.4.3
  • rollup:1.15.6
  • rollup-plugin-typescript2:0.21.1

rollup.config.js

  const inputOptions = {
        input: './index.ts',
        external: [

        ],
        plugins: [
            nodeResolve(),
            typescript({
                transformers,
                tsconfigDefaults,
                tsconfig: "tsconfig.json",
                tsconfigOverride: {
                    compilerOptions: {
                        module: 'esnext',
                        declarationDir: "../../../dist/" + packageName + "/dts-temp/"
                    }
                },
                useTsconfigDeclarationDir: true
            }),

        ]
    };
    const outputOptions = {
        file: path.join("../../../dist/", packageName, packageName + ".js"),
        format: "es",

    };

    // create a bundle
    const originCwdDir = process.cwd();
    process.chdir(path.resolve(__dirname, '../packages/', packageName, 'src'))
    const bundle = await rollup.rollup(inputOptions);

tsconfig.json

package.json

plugin output with verbosity 3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ezolenkocommented, Jun 28, 2019

And yeah workaround is to do clean builds

1reaction
ezolenkocommented, Jun 20, 2019

Doesn’t work how? Could you make a small test repo with reproduction?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a bug with feature caching inspection for custom ...
I can't inspect any of the features in a custom transformer when caching is on. It works in the Main screen but not...
Read more >
Exercise: Custom Transformers and Parallel Processing
Absolutely do NOT run this with either Feature Caching or Stop at Breakpoints turned on. If you do, parallel processing won't work! The...
Read more >
Source code for transformers.file_utils - Hugging Face
Utilities for working with the local dataset cache. This file is adapted ... Raise ``EnvironmentError`` if `filename` or its stored metadata do not...
Read more >
Custom Transformer Versioning · FME Desktop Advanced ...
FME includes functionality so that a linked custom transformer can exist as a ... When you open the definition (fmx file) the next...
Read more >
How is it possible that a key exists in cache but cannot be ...
I have tried to use the debugger to understand the internal workings of Infinispan but I don't seem to be able to pin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found