a-la / alamode

A Node.JS RegExp-based transpiler of source code.
https://alamode.cc
GNU Affero General Public License v3.0
10 stars 1 forks source link

import * as I should result in an object rather than a default function #7

Open zavr-1 opened 5 years ago

zavr-1 commented 5 years ago
import def, * as C from '../context'

is just

const C = def = require('../context');

is has to be

const def = require('../context'); const C = { ...def };

so the C cannot be a function it must be an object.