Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

fix(index): revert to CJS exports #212

Merged
merged 1 commit into from
Sep 30, 2017
Merged

fix(index): revert to CJS exports #212

merged 1 commit into from
Sep 30, 2017

Conversation

michael-ciniawsky
Copy link
Member

Noteable Changes


css-loader sadly expects CJS exports for asset resolving and there isn't a convenient way to fix it directly in css-loader atm. ES2015 Modules exports will have to wait until the new CSS Pipeline is in place or a major version bump in css-loader is accepted. Note that CJS <=> ESM doesn't really matter here since we export one static value (Filepath {String}) only anyways.

Issues


Unverified

This user has not yet uploaded their public signing key.
@codecov
Copy link

codecov bot commented Sep 30, 2017

Codecov Report

Merging #212 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #212   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          35     35           
  Branches       16     16           
=====================================
  Hits           35     35
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c49aceb...e084b9a. Read the comment docs.

@bnjbvr
Copy link

bnjbvr commented Sep 30, 2017

(for what it's worth, I was hitting the issue too and your patch fixes it. Thanks!)

Copy link
Member

@joshwiens joshwiens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 years from now, the time in NodeJS without proper modules is going to be known as ... The Dark Ages

@joshwiens joshwiens merged commit f412b3e into master Sep 30, 2017
@joshwiens joshwiens deleted the fix branch September 30, 2017 23:17
@michael-ciniawsky michael-ciniawsky removed this from the 1.1.5 milestone Sep 30, 2017
sepe81 referenced this pull request Jan 16, 2020

Unverified

This user has not yet uploaded their public signing key.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to load fonts since update [v1.0.0] File paths in url() broken (css-loader)
3 participants