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
Then, I took the browserify bundle, put it under \lib\ace\mode\gherkin\ and ran the ace build like so: node ./Makefile.dryice.js full --target ../ace-builds. After doing so, the build finishes with no errors and outputs invalid worker-gherkin.js files. For example, src-noconflict/worker-gherkin.js has the following invalid lines: function ace.define(name, deps, m) {. When I try to load it in the browser, I get these failures:
src/worker-gherkin.js does not load in the browser either. It throws the following errors:
Is this simply a limitation with dryice or how you've implemented it? I noticed the other worker files (csslint, json_parse, jshint, etc) are pre-wrapped with amd syntax. Is this an expectation? The strange thing is, if I wrap my browserified bundle with amd it still doesn't work. The only way I was able to get dryice to build my files properly was to have them as their original src files, wrapped with amd syntax, as seen in this PR: #2429.
At the end of the day, I would prefer to provide a browserify bundle instead of the loose src files.
The text was updated successfully, but these errors were encountered:
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
I'm attempting to add a new worker js file, in this case for gherkin.
Specifically, I ran browserify against this set of files: https://github.com/cucumber/gherkin3/tree/master/javascript/lib/gherkin
Then, I took the browserify bundle, put it under
\lib\ace\mode\gherkin\
and ran the ace build like so:node ./Makefile.dryice.js full --target ../ace-builds
. After doing so, the build finishes with no errors and outputs invalidworker-gherkin.js
files. For example,src-noconflict/worker-gherkin.js
has the following invalid lines:function ace.define(name, deps, m) {
. When I try to load it in the browser, I get these failures:src/worker-gherkin.js
does not load in the browser either. It throws the following errors:Is this simply a limitation with dryice or how you've implemented it? I noticed the other worker files (csslint, json_parse, jshint, etc) are pre-wrapped with amd syntax. Is this an expectation? The strange thing is, if I wrap my browserified bundle with amd it still doesn't work. The only way I was able to get dryice to build my files properly was to have them as their original src files, wrapped with amd syntax, as seen in this PR: #2429.
At the end of the day, I would prefer to provide a browserify bundle instead of the loose src files.
The text was updated successfully, but these errors were encountered: