ampproject / ampproject/rollup-plugin-closure-compiler

How to include closure libraries in compilation ?

Open
#73 1 comment 0 reactions 1 assignee Claimed by @kristoferbaxter View on GitHub
question
Dominant language
TypeScript
Stars
293
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I'm using closure library with goog.require syntax, e.g.
```javascript
goog.require('goog.net.createWebChannelTransport');
```
On compilation, I got error that says required "goog.net.createWebChannelTransport" namespace never provided. I have tried to set js properties in compiler options like:
```javascript
compiler({
js: 'node_modules/google-closure-library/closure/goog/**/*.js'
})
```
but it doesn't work. Am I doing something wrong? How do I include closure libraries in compilation?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.