Skip to content

Commit

Permalink
Fix www exports (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
fantactuka authored Sep 12, 2022
1 parent 11e842d commit 83f49f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ async function build(name, inputFile, outputPath, outputFile, isProd) {
// Assets pipeline might use "export" word in the beginning of the line
// as a dependency, avoiding it with empty comment in front
const patchedSource = isWWW
? source.replace(/^(export)/gm, '/**/$1')
? source.replace(/^(export(?!s))/gm, '/**/$1')
: source;
return `${getComment()}\n${patchedSource}`;
},
Expand Down

2 comments on commit 83f49f2

@vercel
Copy link

@vercel vercel bot commented on 83f49f2 Sep 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-git-main-fbopensource.vercel.app
lexical-fbopensource.vercel.app
lexical.dev
lexicaljs.com
www.lexical.dev
lexicaljs.org

@vercel
Copy link

@vercel vercel bot commented on 83f49f2 Sep 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground.vercel.app
lexical-playground-fbopensource.vercel.app
lexical-playground-git-main-fbopensource.vercel.app
playground.lexical.dev

Please sign in to comment.