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

"define" statement with no semi cause error #48

Open
waiaan opened this issue Sep 10, 2020 · 0 comments
Open

"define" statement with no semi cause error #48

waiaan opened this issue Sep 10, 2020 · 0 comments

Comments

@waiaan
Copy link

waiaan commented Sep 10, 2020

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{}
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

No branches or pull requests

1 participant