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

Use from nodejs #10

Closed
horte opened this issue Aug 22, 2014 · 1 comment
Closed

Use from nodejs #10

horte opened this issue Aug 22, 2014 · 1 comment

Comments

@horte
Copy link

horte commented Aug 22, 2014

Great work, though I have a question regarding using it from nodejs.
I have a project like this

/client
  /js
    main.js
/server
  server.js
/node_modules
  /brace
/lib
  /custom-ace-modes
    my-mode.js

I have written my-mode.js so it works when using browserify and building the main.js for the client-side though I want to be able to use the same my-mode.js from my server.js.

Do you know how to do this? When using require('brace') it complains on the window variable.

@thlorenz
Copy link
Owner

brace only works in the browser. use the browser field to ensure it never gets required on the serverside.

ShinHyunJong pushed a commit to AlgorithmLABS/brace that referenced this issue Mar 22, 2019
DibyankP pushed a commit to DibyankP/brace-1 that referenced this issue Apr 22, 2020
add another class for question using in add puzzle page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants