Comments (6)
I did not remember this was here. Well, if anyone is having this problem with the published version (I see no reason why nobody would, but I want to know how many), please stick a reaction emoji on the first comment above - but basically just move your exports to the bottom if you want it to work in the short term.
from eximport.
Well I'm here and have been making updates so...
from eximport.
It builds:
eximportBridge.ns.Foo=class Foo extends Error {}
eximportBridge.ns.Baz=class Baz {
static get boz() {
return new Foo("foo")
}
}
from eximport.
Does Javascript just suck up that part of the namespace??
from eximport.
Apparently it does!
> const a = function b() {}
< undefined
> b
< ReferenceError: Can't find variable: b
> a
< function b() {}
What you playing at Javascript
Well, I assume it applies an inherent name while not actually adding it to the namespace
from eximport.
Fixed (they're now const
)
from eximport.
Related Issues (9)
- Publish this HOT 1
- Loading eximport breaks explicit `module.exports` HOT 1
- This should return an explicit bridge object rather than an anonymous object HOT 1
- You should be able to do `require("foo").Foo` not `require("foo").ns.Foo` HOT 1
- Add tests for deferred behaviour HOT 2
- Test: Does `require()` on mutual import defer past the current execution context? HOT 10
- Test: Does explicit export of an import-derived symbol work in mutual dependency? HOT 5
- Recursive mutual import can produce invalid state HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eximport.