-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clash with rollup-plugin-typescript2
?
#16
Comments
The issue is with In the docs, there is a Compatibility / plugins using async/await section which points to using So, the solution is to try this option. Not sure I can fix this somehow in |
@lazarljubenovic I tried it and it actually works: typescript({
typescript: require('typescript'),
objectHashIgnoreUnknownHack: true,
}), Full configimport typescript from 'rollup-plugin-typescript2'
import copy from 'rollup-plugin-copy'
export default {
input: 'src/index.ts',
output: {
file: 'dist/bundle.js',
name: 'myLibrary',
format: 'iife',
},
plugins: [
copy({
targets: [
'src/index.html',
],
outputFolder: 'dist',
}),
typescript({
typescript: require('typescript'),
objectHashIgnoreUnknownHack: true,
}),
]
} Change this in your config and it should work too 😉 |
I skimmed too quickly, I thought it was about |
Thanks, it worked. Very wierd we need to do this, though. |
I created a barebones project with Typescript.
tsconfig.json
package.json
With
src/index.html
andsrc/index.ts
present, I am getting the following error.Here's the config.
Commenting out any of the plugins make it work properly. This error was mentioned in ezolenko/rollup-plugin-typescript2#105, but the rationale given seems irrelevant to this issue.
The text was updated successfully, but these errors were encountered: