๋น๋๊ฐ ์งํ๋์ง ์๊ณ ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
Error: Entry module cannot be external
์ด๊ฒ์ https://github.com/ezolenko/rollup-plugin-typescript2/commit/29b13a089b6a1a86574255779277d1e06414f557#diff -f41e9fe1604a45c83f3b6์ ๋ณ๊ฒฝ์ผ๋ก ์ธํด ๋ฐ์ํ ๊ฒ ๊ฐ์ต๋๋ค.
๋ค์๊ณผ ๊ฐ์ ์ค์ ์ ํ์ธํ์ต๋๋ค.
index.ts
:
export * from './index2';
index2.ts
:
// doesn't matter
import typescript from 'rollup-plugin-typescript2';
export default {
input: './index.ts',
output: {
format: 'cjs',
file: './dist/build.js',
},
plugins: [
typescript()
]
}
๋๋ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์๊ณ ์์ด. ์ด๊ฒ ๋๋ฌธ์ 0.20.0
๊ฐ ๋ด ๋น๋๋ฅผ ๊นจ๋จ๋ฆฝ๋๋ค!
0.19.0
๊ฐํ์ด์ ๐
esm ํ์๊ณผ ๋์ผํ ๋ฌธ์
rollup-plugin-typescript2๋ฅผ ์ฌ์ฉํ๋ ๋ชจ๋ ํ๋ก์ ํธ์์ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค.
๊ฐ์ ๋ฌธ์ ๊ฐ ๊ฑด๋ฌผ์ ๋ถ์๋ค
๋ฒ์ 0.20.0๊ณผ ๋์ผํ ๋ฌธ์
์ดํ์ ์ ๋ฏธ์น๋ฏ์ด ๊ตฌ๊ธ๋งํ๋ค๊ฐ ํฌ๊ธฐํ์ต๋๋ค. ๋ด๊ฐ ๋ฏธ์น ๊ฒ ์๋ ๊ฒ ๊ฐ๋ค! ์ผ! :๋ฐ๋ค:
์ด, ๋ฌธ์๋ฅผ ์ค์ ๋ก ์ฝ์์ด์ผ ํ๋๋ฐ... 0.20.1๋ก ์ง๊ธ ์๋ํด๋ณด์ธ์
0.20.1 ์๋: @jansiegel @ezolenko ๋ฌธ์ ๋ฅผ ์ข ๋ฃํ ์ ์์ต๋๊น?
[email protected]
๋ฌธ์ ๊ฐ ์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด, ๋ฌธ์๋ฅผ ์ค์ ๋ก ์ฝ์์ด์ผ ํ๋๋ฐ... 0.20.1๋ก ์ง๊ธ ์๋ํด๋ณด์ธ์