Comments (7)
released!
from refractor.
It works with "sideEffects": ["lib/all.js", "lib/common.js"],
. I tested and
- the bundle size is large, as expected, rather than being tiny
- getLanguages returns the full language list
- languages seem to work.
from refractor.
I'm using vite which uses rollup internally
from refractor.
which parts?
from refractor.
all.js and common.js remove all their language imports and end up registering nothing except plaintext. I think the correct option for sideEffects is
"sideEffects": ["lib/all.js", "lib/common.js"],
from refractor.
Could you check by changing the package.json
in your node_modules
locally which configuration works for your bundler (and share what bundler that is)?
I’m up for changing this but I’d appreciate publishing something more certain than an “I think X will work”!
from refractor.
Could you clarify which bundler that is?
from refractor.
Related Issues (20)
- Incompatibility with Prism.js HOT 8
- Backporting Prism 1.24 to v3 for security fix? HOT 1
- Vulnerabilities introduced in your package? HOT 6
- markdown code-block using docuemnt HOT 1
- Support for Bicep HOT 1
- Demo? HOT 5
- SQL Tagged Template Strings with JavaScript HOT 1
- Language "txt" or "empty" HOT 2
- 🐛 Refractor doesn't seem to be imported in Production HOT 6
- Incorrect Prism global in browser environment HOT 8
- Switching prismjs dependency from ~ to ^ HOT 5
- Release a `3.x` backport of updating to `prismjs@~1.25.0`? HOT 4
- JSX or TSX indent HOT 1
- Backport the prismjs 1.27.0 upgrade to 3.x HOT 14
- Weird behavior on 3.x, and not on 4.x HOT 2
- How to use Prism’s `diff` plugin? HOT 1
- Can I remove `"type": "module"` from package.json ?
- Markdown rendering strips tags from HTML code blocks HOT 3
- Does your side support aptos move language? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refractor.