Skip to content

Conversation

@mummybot
Copy link

Fixes: #381

styleInjectRelativePath

Type: boolean

Default: true

The built file will contain a relative path to the style-inject module:

import styleInject from '../node_modules/style-inject/dist/style-inject.es.js';`

This is fine if your project is the final consumer of this library.

If you are creating an ESM library to be used by other projects, then you will want to specify a module path

styleInjectRelativePath: false

import styleInject from 'style-inject';

@codecov
Copy link

codecov bot commented Aug 24, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (118253e) 92.94% compared to head (d6bebba) 92.98%.
Report is 2 commits behind head on master.

❗ Current head d6bebba differs from pull request most recent head ecf4f27. Consider uploading reports for the commit ecf4f27 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #395      +/-   ##
==========================================
+ Coverage   92.94%   92.98%   +0.04%     
==========================================
  Files          10       10              
  Lines         326      328       +2     
  Branches      115      116       +1     
==========================================
+ Hits          303      305       +2     
  Misses         22       22              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

ESM library generated with rollup-plugin-postcss throws Cannot find module '../node_modules/style-inject/dist/style-inject.es.js'

2 participants