dmnsgn/frontend-boilerplate

SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)

dmnsgn opened this issue · 1 comments

SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)

Solution:
Change the order of transforms, moving babelify in the first position of the transform array in the package.json:

  "browserify": {
    "transform": [
      "babelify",
      "aliasify",
      "brfs"
    ]
  },

devDependencies need "babelify": "^8.x.x" also as well.