summaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 34f998b73..9c69fcf2a 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -20,6 +20,7 @@ const typescriptPath = path.resolve(
__dirname,
"third_party/node_modules/typescript/lib/typescript.js"
);
+const gnArgs = fs.readFileSync("gen/gn_args.txt", "utf-8").trim();
// We will allow generated modules to be resolvable by TypeScript based on
// the current build path
@@ -228,7 +229,8 @@ export default function makeConfig(commandOptions) {
// replace strings
replace({
- TS_VERSION: typescript.version
+ TS_VERSION: typescript.version,
+ GN_ARGS: gnArgs
}),
// would prefer to use `rollup-plugin-virtual` to inject the empty module, but there