Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 066887d

Browse files
author
Eric MORAND
committed
Fix issue NightlyCommit#11
1 parent b20bf0e commit 066887d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
{
3535
loader: 'twing-loader',
3636
options: {
37-
environmentModulePath: 'environment.js'
37+
environmentModulePath: require.resolve('./environment.js')
3838
}
3939
}
4040
]
@@ -90,7 +90,7 @@ module.exports = {
9090
{
9191
loader: 'twing-loader',
9292
options: {
93-
environmentModulePath: 'environment.js',
93+
environmentModulePath: require.resolve('./environment.js'),
9494
renderContext: {
9595
foo: 'bar'
9696
}
@@ -131,7 +131,7 @@ This second behavior, known as _render at compile time_, comes with the benefit
131131

132132
|Name|Required|Type|Default|Description|
133133
|---|:---:|:---:|:---:|---|
134-
|environmentModulePath|`true`|string|`undefined`| A path to the module that exports the `TwingEnvironment` instance that will be used by the loader to compile (and render) the templates at compile time and by the bundle to render them at runtime.|
134+
|environmentModulePath|`true`|string|`undefined`| The absolute path or the identifier to the module that exports the `TwingEnvironment` instance that will be used by the loader to compile (and render) the templates at compile time and in the bundle to render them at runtime.|
135135
|renderContext|`false`|any|`undefined`|If different from `undefined`, enables the _render at compile time_ behavior and serves as context for the rendering of the templates.|
136136

137137
## Contributing

0 commit comments

Comments
 (0)