Skip to content

Commit 1b676f7

Browse files
committed
compiler/gopherjspkg: Add package.
This package embeds the core GopherJS packages (js, nosync). It's similar to how native overrides for stdlib are embedded in the compiler/natives package.
1 parent fff506c commit 1b676f7

File tree

4 files changed

+291
-8
lines changed

4 files changed

+291
-8
lines changed

compiler/gopherjspkg/doc.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Package gopherjspkg provides core GopherJS packages via a virtual filesystem.
2+
//
3+
// Core GopherJS packages are packages that are critical for GopherJS compiler
4+
// operation. They are needed to build the Go standard library with GopherJS.
5+
// Currently, they include:
6+
//
7+
// github.com/gopherjs/gopherjs/js
8+
// github.com/gopherjs/gopherjs/nosync
9+
//
10+
package gopherjspkg
11+
12+
//go:generate vfsgendev -source="github.com/gopherjs/gopherjs/compiler/gopherjspkg".FS -tag=gopherjsdev

0 commit comments

Comments
 (0)