Closed dmitry-saritasa closed 6 years ago
fixed with ignore: [/web\/static\/vendor/, /node_modules/] in babel config of brunch-config
Yep, handlebars
assumes old non-module environment with top-level this
equal to window
, while babel aggressively tries to emulate type=module
, replacing top-level this
with undefined
.
We should add a note to README.md
.
package.json
brunch-config.js
code
if I change
require('handlebars/runtime');
->require('handlebars');
I get the following: