-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
bug(turndown): no browser support #9884
Comments
Looking at the 'use strict';
const css = require('css');
function extend (destination) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) { This difference is likely related to Joplin's release cycle.
|
Workaround for mixmark-io/turndown-plugin-gfm#3 and other issues too ... by migrating to a more well-maintained fork of Turndown. Though the fork also has it's own issues. Applying workarounds for: Workaround for laurent22/joplin#9885 Workaround for laurent22/joplin#9884 Workaround for laurent22/joplin#9881
That's great news - looking forward to the new release! |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information. |
Current behaviour
While original
turndown
includes builds for the browser,@joplin/turndown
only includes a single build:And unlike the original turndown,
@joplin/turndown
hasconst css = require('css');
import, which in turn importsfs
:https://github.com/reworkcss/css/blob/master/lib/stringify/source-map-support.js#L9
That causes an error in Webpack when trying to build a project that uses
@joplin/turndown
:The same goes for "path" and "url" node core modules
Expected behaviour
Could you please publish the browser builds like the original library did?
A workaround for now involves adding this to my webpack config:
and things seem to work fine, but doesn't meant it will keep working in the future...
Thanks
The text was updated successfully, but these errors were encountered: