Merge pull request #2992 from sveltejs/appease-webpack

Change package.json stubs to work with webpack's module resolution
pull/2999/head
Rich Harris 5 years ago committed by GitHub
commit 7bb581a61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ fs.readdirSync('src/runtime')
.filter(dir => fs.statSync(`src/runtime/${dir}`).isDirectory())
.forEach(dir => {
fs.writeFileSync(`${dir}/package.json`, JSON.stringify({
main: './index.js',
main: './index',
module: './index.mjs'
}, null, ' '));

Loading…
Cancel
Save