You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider publishing it as 2 separate packages? (Parse and Stringify)
We are using only Parse method, but right now it will still bundle the whole library.
Changing import { parse } from 'css'; to import parse from 'css/lib/parse'; reduces pre GZIP size by more than 90%;
CSS module size in bundle before:
CSS module size in bundle after:
But we are risking that if internal api changes, it will break for us.
The text was updated successfully, but these errors were encountered:
This is probably due to source-map support (and the associated dependencies). Removing it might be enough.
I worked on removing the source-map support. This will solve the issue. Trying to reach out to the rework members before going into the fork route (and discussing with my company for the PR route).
ref: #164
First, thanks for this great library.
Would you consider publishing it as 2 separate packages? (
Parse
andStringify
)We are using only
Parse
method, but right now it will still bundle the whole library.Changing
import { parse } from 'css';
toimport parse from 'css/lib/parse';
reduces pre GZIP size by more than 90%;CSS module size in bundle before:
CSS module size in bundle after:
But we are risking that if internal api changes, it will break for us.
The text was updated successfully, but these errors were encountered: