Closed mrdulin closed 6 years ago
I use webpack and awesome-typescript-loader and want to import ts module into a js file.
webpack
awesome-typescript-loader
when I build my source code, it throw error.
build
here is the repo for reproducing this issue.
https://github.com/mrdulin/schemaglue-js-import-ts-issue
I think I know what happened. Because schemaglue use its fs operation, not use webpack fs oepration. So import ts module into js file will not pass webpack loaders and plugins.
schemaglue
fs
loaders
plugins
Hi @mrdulin ,
What if you add this to your webpack config:
node: { fs: "empty" }
https://github.com/webpack-contrib/css-loader/issues/447
Support for typescript added for version >= 4.0.0. Closing this issue now.
I use
webpack
andawesome-typescript-loader
and want to import ts module into a js file.when I
build
my source code, it throw error.here is the repo for reproducing this issue.
https://github.com/mrdulin/schemaglue-js-import-ts-issue
I think I know what happened. Because
schemaglue
use itsfs
operation, not usewebpack
fs oepration. So import ts module into js file will not pass webpackloaders
andplugins
.