Compare commits

...
This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.

1 commit

Author SHA1 Message Date
Bruno Windels
28c5b0b80e need side-effects for polyfills 2021-06-24 16:55:22 +02:00

View file

@ -47,7 +47,17 @@ const __dirname = dirname(__filename);
const projectDir = path.join(__dirname, "../"); const projectDir = path.join(__dirname, "../");
const cssSrcDir = path.join(projectDir, "src/platform/web/ui/css/"); const cssSrcDir = path.join(projectDir, "src/platform/web/ui/css/");
const srcDir = path.join(projectDir, "src/"); const srcDir = path.join(projectDir, "src/");
const isPathInSrcDir = path => path.startsWith(srcDir);
const allowSideEffectsTreeShakeDirs = [
path.join(projectDir, "node_modules/mdn-polyfills/"),
path.join(projectDir, "node_modules/core-js/"),
path.join(projectDir, "node_modules/text-encoding/"),
srcDir,
];
const isPathInSrcDir = path => {
return allowSideEffectsTreeShakeDirs.some(p => path.startsWith(p));
};
const parameters = new commander.Command(); const parameters = new commander.Command();
parameters parameters