From 0a3de78ec6ec324614bb4c2257eca1b893c4d02b Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Fri, 12 Apr 2024 17:55:46 -0400 Subject: [PATCH] document third party acorn plugin --- src/jsx-loader.js | 1 + src/wcc.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/jsx-loader.js b/src/jsx-loader.js index e1cf2a6..53297cc 100644 --- a/src/jsx-loader.js +++ b/src/jsx-loader.js @@ -6,6 +6,7 @@ import { generate } from '@projectevergreen/escodegen-esm'; import fs from 'fs'; import jsx from '@projectevergreen/acorn-jsx-esm'; import { parse, parseFragment, serialize } from 'parse5'; +// Need an acorn plugin for now - https://github.com/ProjectEvergreen/greenwood/issues/1218 import { importAttributes } from 'acorn-import-attributes'; const jsxRegex = /\.(jsx)$/; diff --git a/src/wcc.js b/src/wcc.js index cc598ca..1247f3b 100644 --- a/src/wcc.js +++ b/src/wcc.js @@ -7,6 +7,7 @@ import * as walk from 'acorn-walk'; import { generate } from '@projectevergreen/escodegen-esm'; import { getParser, parseJsx } from './jsx-loader.js'; import { parse, parseFragment, serialize } from 'parse5'; +// Need an acorn plugin for now - https://github.com/ProjectEvergreen/greenwood/issues/1218 import { importAttributes } from 'acorn-import-attributes'; import fs from 'fs';