Skip to content

Commit

Permalink
Merge pull request #18 from long-woo/master
Browse files Browse the repository at this point in the history
fix: registerRegEx regex may not start with System.register
  • Loading branch information
guybedford authored Dec 1, 2022
2 parents 11a0001 + 6246cd3 commit 875e394
Showing 1 changed file with 1 addition and 1 deletion.
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 = /\s*(\/\*[^\*]*(\*(?!\/)[^\*]*)*\*\/|\s*\/\/[^\n]*)*\s*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

0 comments on commit 875e394

Please sign in to comment.