use shimport

This commit is contained in:
Rich Harris
2018-08-29 15:58:27 -04:00
parent 6393a30b13
commit 36fc8a947b
5 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
import * as fs from 'fs';
export function copy_shimport(dest: string) {
const shimport_version = require('shimport/package.json').version;
fs.writeFileSync(
`${dest}/client/shimport@${shimport_version}.js`,
fs.readFileSync(require.resolve('shimport/index.dev.js'))
);
}