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

Important Semicolon Is Removed #2110

Closed
anliting opened this issue Apr 2, 2018 · 1 comment
Closed

Important Semicolon Is Removed #2110

anliting opened this issue Apr 2, 2018 · 1 comment

Comments

@anliting
Copy link

anliting commented Apr 2, 2018

With these files:

a.mjs:

import rollup from 'rollup'
;(async()=>{
    let
        bundle=await rollup.rollup({input:'b.mjs'}),
        {code}=await bundle.generate({format:'iife'})
    console.log(code)
})()

b.mjs:

import c from './c.mjs'
;(()=>{
    console.log(c)
})()

c.mjs:

export default 0

Run: $ node --experimental a.mjs

Output:

(function () {
    'use strict';

    var c = 0

    (()=>{
        console.log(c);
    })();

}());

Expected: At least one semicolon between var c = 0 and (()=>{.

$ node -v: v9.10.1
$ npm -v rollup: 5.8.0

@anliting anliting changed the title Important Semicolon Is Removed. Important Semicolon Is Removed Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants