Skip to content

Commit

Permalink
Merge 191d735 into 612cc5f
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Apr 15, 2023
2 parents 612cc5f + 191d735 commit 80241fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -92,9 +92,9 @@
"lint-and-test": "npm run lint && npm test",
"update:docs": "node scripts/update-docs",
"review:syntax-patch": "node scripts/review-syntax-patch",
"test": "mocha lib/__tests --reporter ${REPORTER:-progress}",
"test:cjs": "mocha cjs/__tests --reporter ${REPORTER:-progress}",
"test:dist": "mocha dist/__tests --reporter ${REPORTER:-progress}",
"test": "mocha lib/__tests --reporter progress",
"test:cjs": "mocha cjs/__tests --reporter progress",
"test:dist": "mocha dist/__tests --reporter progress",
"coverage": "c8 --exclude lib/__tests --reporter=lcovonly npm test",
"prepublishOnly": "npm run lint-and-test && npm run build-and-test",
"hydrogen": "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"
Expand Down
4 changes: 3 additions & 1 deletion scripts/bundle.js
Expand Up @@ -14,7 +14,7 @@ async function build() {
[path.resolve('lib/version.js')]: `export const version = "${version}";`,
[path.resolve('lib/version.cjs')]: `module.exports = "${version}";`
};
const genModulesFilter = new RegExp('(' + Object.keys(genModules).join('|').replace(/\./g, '\\.') + ')$');
const genModulesFilter = new RegExp('(' + Object.keys(genModules).join('|').replace(/\./g, '\\.').replace(/\\/g, '/') + ')$');
const plugins = [{
name: 'replace',
setup({ onLoad }) {
Expand All @@ -33,6 +33,7 @@ async function build() {
bundle: true,
minify: true,
logLevel: 'info',
external: ['module'],
plugins
}),

Expand All @@ -43,6 +44,7 @@ async function build() {
bundle: true,
minify: true,
logLevel: 'info',
external: ['module'],
plugins
})
]);
Expand Down

0 comments on commit 80241fb

Please sign in to comment.