Skip to content

"define" statement with no semi cause error #48

@waiaan

Description

@waiaan

cause error :

<template><div></div></template>
<script>
define(['Vue'],function(Vue){})
</script>
<style></style>

no error:

<template><div></div></template>
<script>
define(['Vue'],function(Vue){});
</script>
<style></style>

because the error code text passed to onload.fromText is:

(function (template) {
  define(['Vue'], function (Vue) {

  })  // here is the reason because of IIFE
    (function (css, id) {
      
    })(' ', 1);
})('' +
  ' <div>' +
  ' </div>' +
  '' + '');

also in css_parser , functionString trans

.a  .b{}

to

.a.b{}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions