Skip to content

Commit

Permalink
remove the minified entries because of CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Apr 21, 2020
1 parent 5d3da32 commit 3a4e353
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/core/scripts/remove-empty-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ const nonMinified = [
`${process.cwd()}/dist/urql-core-internal.mjs`,
];

const minified = [
`${process.cwd()}/dist/urql-core.min.js`,
`${process.cwd()}/dist/urql-core.min.mjs`,
`${process.cwd()}/dist/urql-core-internal.min.js`,
`${process.cwd()}/dist/urql-core-internal.min.mjs`,
];

const removeEmptyImports = (babel) => {
const { types: t } = babel;

Expand Down Expand Up @@ -43,8 +36,3 @@ nonMinified.forEach(loc => {
const { code: newCode } = transform(fs.readFileSync(loc), { plugins: [removeEmptyImports], babelrc: false });
fs.writeFileSync(loc, newCode);
});

minified.forEach(loc => {
const { code: newCode } = transform(fs.readFileSync(loc), { plugins: [removeEmptyImports], babelrc: false, minified: true });
fs.writeFileSync(loc, newCode);
});

0 comments on commit 3a4e353

Please sign in to comment.