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

Worker support #25

Merged
merged 22 commits into from
Oct 10, 2021
Merged

Worker support #25

merged 22 commits into from
Oct 10, 2021

Conversation

lifeart
Copy link
Owner

@lifeart lifeart commented Oct 2, 2021

related: lifeart/ember-language-server#305

@lifeart
Copy link
Owner Author

lifeart commented Oct 9, 2021

fetch('http://localhost:3000/static/devextensions/node_modules/%40lifeart/ember-language-server/dist/bundled/start-worker-server.js').then(async (result) => {
    new Worker('data:application/javascript,' + encodeURIComponent(await result.text()));
})

// https://www.npmjs.com/package/node-polyfill-webpack-plugin


var process = {
    env: {},
    argv: ''
  };
  var require = function() {
    console.log(...arguments);
  }
  t.useColors;
  i.deprecate is not a function

  // replace
  t.promisify=function(e){}

https://gist.github.com/lifeart/6d1279a6c4999d48b17f063faf735fc6

@lifeart lifeart merged commit 25cbf35 into master Oct 10, 2021
@lifeart lifeart deleted the worker-support branch October 10, 2021 09:03
@lifeart lifeart mentioned this pull request Oct 10, 2021
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

Successfully merging this pull request may close these issues.

1 participant