diff --git a/scripts/build/config.mjs b/scripts/build/config.mjs index 424630e26..9e9e57b2c 100644 --- a/scripts/build/config.mjs +++ b/scripts/build/config.mjs @@ -206,6 +206,24 @@ const pluginFiles = [ "@glimmer/syntax/dist/modules/es2017/lib/parser/tokenizer-event-handlers.js" ), }, + // This passed to plugins, our plugin don't need access to the options + { + module: require.resolve( + "@glimmer/syntax/dist/modules/es2017/lib/parser/tokenizer-event-handlers.js" + ), + process: (text) => + text.replace(/\nconst syntax = \{.*?\n\};/su, "\nconst syntax = {};"), + }, + { + module: path.join( + path.dirname(require.resolve("@handlebars/parser/package.json")), + "dist/esm/index.js" + ), + path: path.join( + path.dirname(require.resolve("@handlebars/parser/package.json")), + "dist/esm/parse.js" + ), + }, ], }, "src/language-html/parser-html.js",