Skip to content

Commit

Permalink
Merge pull request #21 from long-woo/master
Browse files Browse the repository at this point in the history
Fix the registerRegEx problem.
  • Loading branch information
guybedford authored Feb 21, 2023
2 parents 875e394 + ca049bc commit 306881c
Show file tree
Hide file tree
Showing 2 changed files with 2,863 additions and 2,819 deletions.
2 changes: 1 addition & 1 deletion src/systemjs-babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var jsonCssWasmContentType = /^(application\/json|application\/wasm|text\/css)(;
var jtsxUrls = /^[^#?]+\.(tsx?|jsx)([?#].*)?$/;
var tsxUrls = /^[^#?]+\.tsx([?#].*)?$/;
var jsxUrls = /^[^#?]+\.jsx([?#].*)?$/;
var registerRegEx = /\s*(\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*)*\s*System\s*\.\s*register\s*\(\s*(\[[^\]]*\])\s*,\s*\(?function\s*\(\s*([^\),\s]+\s*(,\s*([^\),\s]+)\s*)?\s*)?\)/;
var registerRegEx = /System\s*\.\s*register\s*\(\s*(\[[^\]]*\])\s*,\s*\(?function\s*\(\s*([^\),\s]+\s*(,\s*([^\),\s]+)\s*)?\s*)?\)/;

var fetch = systemJSPrototype.fetch;
systemJSPrototype.fetch = function (url, options) {
Expand Down
Loading

0 comments on commit 306881c

Please sign in to comment.