this was apparently unnecessary

pull/1186/head
Rich Harris 7 years ago
parent b3b5e6c591
commit cde5fa1225

@ -7,28 +7,11 @@ import typescript from 'rollup-plugin-typescript';
import buble from 'rollup-plugin-buble'; import buble from 'rollup-plugin-buble';
import pkg from './package.json'; import pkg from './package.json';
const src = path.resolve('src');
export default [ export default [
/* compiler/svelte.js */ /* compiler/svelte.js */
{ {
input: 'src/index.ts', input: 'src/index.ts',
plugins: [ plugins: [
{
resolveId(importee, importer) {
// bit of a hack — TypeScript only really works if it can resolve imports,
// but they misguidedly chose to reject imports with file extensions. This
// means we need to resolve them here
if (
importer &&
importer.startsWith(src) &&
importee[0] === '.' &&
path.extname(importee) === ''
) {
return path.resolve(path.dirname(importer), `${importee}.ts`);
}
}
},
replace({ replace({
__VERSION__: pkg.version __VERSION__: pkg.version
}), }),

Loading…
Cancel
Save