提交 88da0562 编写于 作者: L linbingquan

fix(rollup): Fixed the judgment.

上级 fbeb3de7
......@@ -209,7 +209,7 @@ function glsl() {
if ( /\.glsl.js$/.test( id ) === false ) return;
code = code.replace( /\/\* glsl \*\/\`((.|\n)*)\`/, function ( match, p1 ) {
code = code.replace( /\/\* glsl \*\/\`((.|\r|\n)*)\`/, function ( match, p1 ) {
return JSON.stringify(
p1
......@@ -274,7 +274,7 @@ function polyfills() {
transform( code, filePath ) {
if ( filePath.endsWith( 'src/Three.js' ) ) {
if ( filePath.endsWith( 'src/Three.js' ) || filePath.endsWith( 'src\\Three.js' ) ) {
code = "import './polyfills';\n" + code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册