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

#381: Added options styleInjectRelativePath to allow module import for ESM libraries #395

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
2 participants