diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6114ef1..305f5c0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [12.x, 14.x, 16.x] steps: - uses: actions/checkout@v2 @@ -23,4 +23,4 @@ jobs: - name: Run tests run: node ./test/validateModuleExportsMatchCommonJS/index.js - if: matrix.node-version == '14.x' + if: matrix.node-version == '16.x' diff --git a/test/package.json b/test/package.json index ca75ab2..2f35efe 100644 --- a/test/package.json +++ b/test/package.json @@ -5,6 +5,7 @@ "@rollup/plugin-node-resolve": "9.0.0", "webpack": "4.44.2", "webpack-cli": "3.3.12", - "snowpack": "2.12.1" + "snowpack": "2.12.1", + "vite": "2.8.0" } } diff --git a/test/vite/index.js b/test/vite/index.js new file mode 100644 index 0000000..8697e6e --- /dev/null +++ b/test/vite/index.js @@ -0,0 +1,2 @@ +import { __awaiter } from "tslib"; +if (typeof __awaiter !== "function") throw new Error("Missing expected helper __awaiter"); \ No newline at end of file diff --git a/test/vite/package.json b/test/vite/package.json new file mode 100644 index 0000000..3609e6b --- /dev/null +++ b/test/vite/package.json @@ -0,0 +1,5 @@ +{ + "scripts": { + "test": "../node_modules/.bin/vite build && node build/index.js" + } +} diff --git a/test/vite/vite.config.js b/test/vite/vite.config.js new file mode 100644 index 0000000..aafc1dc --- /dev/null +++ b/test/vite/vite.config.js @@ -0,0 +1,12 @@ +import { URL, fileURLToPath } from "url"; +export default { + build: { + outDir: "build", + emptyOutDir: true, + lib: { + entry: fileURLToPath(new URL("index.js", import.meta.url)), + formats: ["es"], + fileName: () => "index.js" + } + } +}; \ No newline at end of file