Skip to content
New issue

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

Issues with generating source maps #395

Closed
piotr-cz opened this issue Mar 5, 2021 · 2 comments
Closed

Issues with generating source maps #395

piotr-cz opened this issue Mar 5, 2021 · 2 comments

Comments

@piotr-cz
Copy link
Contributor

piotr-cz commented Mar 5, 2021

  1. The --sourcemap option is available only for the wmr start command (defined here) - but doesn't trigger source maps generation.

  2. When using wmr build --sourcemap (undocumented) - source maps are generated, but following warning shows up in console:

    Sourcemap is likely to be incorrect: a plugin (wmr-styles) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
    

    This is probably caused by missing map property: in the transform method

    return {
    code,
    moduleSideEffects: true,
    syntheticNamedExports: true
    };

@developit
Copy link
Member

Hiya! Good catch. We don't actually support sourcemaps during dev because there is so little transformation happening. We could in prod though, that plugin should just be returning { map: null }.

@piotr-cz
Copy link
Contributor Author

piotr-cz commented Mar 5, 2021

@developit Thank you for tips! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants